new SuperContent(type, options)
Used to create elements and give them content
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
type |
elementTag | elementTag | ||||||||||||
options |
Object |
Properties
|
- Source:
Extends
Members
element :HTMLElement
Type:
- HTMLElement
- Inherited From:
- Source:
Methods
appendTo(parent)
Used to append
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
HTMLElement | Element | appends to the parent object |
- Inherited From:
- Source:
click(callback, options)
a function that handles click events
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
listener | listens for event activation |
options |
listenerOptions | if the event does not get explicitly handled, its default action should not be taken as it normally would be |
- Inherited From:
- Source:
disable()
Used to disable content such as buttons
- Inherited From:
- Source:
enable()
Used to enable content such as buttons after they've been disabled
- Inherited From:
- Source:
keyUp(callback, options)
a function that handles keyUp events
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
listener | listens for event activation |
options |
listenerOptions | if the event does not get explicitly handled, its default action should not be taken as it normally would be |
- Inherited From:
- Source:
remove()
Used to remove element
- Inherited From:
- Source:
strike(type)
puts a line-through toDoItems if they've been completed and can take the line off if it hasnt been completed.
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string | used to create an if statement to allow the strike function to strike a line through a todoitem or reverse the line |
- Source:
submit(callback, options)
a function that handles submit events
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
listener | listens for event activation |
options |
listenerOptions | if the event does not get explicitly handled, its default action should not be taken as it normally would be |
- Inherited From:
- Source: