Extends
- HTMLElement
Members
(static) ObservedAttributes
Returns an array of all attributes that can be observed for a note element.
- Source
content
Gets the value of the `content` attribute.
- Source
content
Sets the value of the `content` attribute.
- Source
date
Gets the value of the `date` attribute.
- Source
date
Sets the value of the `date` attribute.
- Source
id
Gets the value of the `id` attribute.
- Source
id
Sets the value of the `id` attribute.
- Source
preview
Gets the value of the `preview` attribute.
- Source
title
Gets the value of the `title` attribute.
- Source
title
Sets the value of the `title` attribute.
- Source
Methods
_formatDate(dateString) → {string}
Formats a date string into a readable form.
Parameters:
Name | Type | Description |
---|---|---|
dateString | string | The date string to format |
- Source
Returns:
The formatted date string
- Type:
- string
attributeChangeCallback(name, oldValue, newValue)
Handles attribute changes for the note element.
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name of the attribute that changed |
oldValue | string | The old value of the attribute |
newValue | string | The new value of the attribute |
- Source
connectedCallback()
Initializes the note element when it is added to the DOM.
- Source