-
Notifications
You must be signed in to change notification settings - Fork 16
List of data attributes
Type: Boolean
Default: false
Required on the ul
tag along with data-role="listview"
for the list to be initialized as an Editable Listview.
Type: String
Default: "simple"
Possible values: "simple"
| "complex"
Indicates the type of the editable listview to initialize.
-
Simple Editable Listview has only one value per list item.
-
Complex Editable Listview can have multiple values per list item and user is required to provide a custom form for entry of new list items.
Type: String
Default: ""
The name of the variable to hold the incoming value(s).
Type: String
Default: "View list items"
Title of the list when it contains at least one item.
Type: String
Default: "No items to view"
Title of the list when it is empty.
Type: Boolean
Default: true
Indicating whether the list will be collapsed or not when initialized.
Type: Boolean
Default: false
Indicating whether the DOM has already been enhanced or not. If so, then all the required DOM structure along with relevant CSS classes and corresponding data attributes must be specified.
Following data attributes can only be specified when data-editable-type
is "complex"
.
Type: String
Default: ""
ID of the form to be used for the complex type. This value is required if data-editable-type
is complex
.
Type: htmlString
HTMLString used for rendering the list item. Use %%
as a placeholder for the value and wrap it with <span>
having data-item-name
as the id
.
data-item-template="<h3><span id='fruitName'>%%</span></h3>"
Type: Boolean
Value: can only be true
Indicates the button to insert the new list items in complex type.
Type: Boolean
Value: can only be true
Indicates the button to clear input fields in the form in complex type.
Type: Boolean
Default: false
A boolean value indicating whether to show default carat-r
icon for list items.
Type: String
Default: "Add"
Label of the button in the title header when the list is empty.
Type: String
Default: "plus"
Icon of the button when the list is empty. See this page for the list of available icons.
Type: String
Default: "Edit"
Label of the Edit button.
Type: String
Default: "edit"
Available Icons: see this page
Icon of the button when the list is not empty.
Type: String
Default: "Done"
Label of the button when the list is in edit mode.
Type: String
Default: "check"
Available Icons: see this page
Icon of the button when the list is in edit mode empty. See this page for the list of available icons.
Type: String
Default: "carat-r"
Icon next to list title when the list is collapsed. See this page for the list of available icons.
Type: String
Default: "carat-d"
Icon next to list title when the list is expanded. See this page for the list of available icons.