Constructor
new AccordionItem()
- Since:
- Source:
Extends
Members
type
- Source:
Methods
defaults() → {object}
Properties:
Name |
Type |
Description |
itemId |
string
|
The unique identifier for the item. This is
required in order for any child items to be nested under this item. If
not provided, it will be generated from the title. |
title |
string
|
The title of the item. |
content |
string
|
Content for the dropdown item. This will
be ignored if there are child items. |
parent |
string
|
The parent item's itemId. If blank or null,
this item is a top-level item.
TODO: |
description |
string
|
The tooltip content. |
subTitle |
string
|
The tag to show next to the title. |
selectable |
boolean
|
Whether the item is selectable. |
hasChildren |
boolean
|
Whether the item has children. |
- Source:
Returns:
Default attributes for an AccordionItem model.
-
Type
-
object
initialize()
- Source:
setIdFromTitle()
Sets the itemId from the title, replacing spaces with dashes and
removing any non-alphanumeric characters.
- Source: