Constructor
new ListItem(dataopt, …args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
* |
<optional> |
user data associated with the item |
args |
* |
<repeatable> |
parent class parameters |
- Mixes In:
- Source:
Methods
getData() → {*}
Return the item user data.
- Source:
Returns:
- Type
- *
getList() → {qui.lists.List}
Return the owning list.
- Source:
Returns:
- Type
- qui.lists.List
hide()
Hide the field.
- Source:
isHidden() → {Boolean}
Tell if the item is hidden.
- Source:
Returns:
- Type
- Boolean
isMatch(filter) → {Boolean}
Tell if item matches a search filter. By default, uses qui.utils.string.intelliSearch
on textual content
of the HTML element.
Parameters:
Name | Type | Description |
---|---|---|
filter |
String | search filter |
- Source:
Returns:
- Type
- Boolean
isSelected()
Tell if item is selected or not.
- Source:
(abstract) makeContent() → {jQuery}
Implement this method to create the actual list item content.
- Source:
Returns:
- Type
- jQuery
setData(data)
Set the item user data.
Parameters:
Name | Type | Description |
---|---|---|
data |
* |
- Source:
setList(list)
Set the owning list.
Parameters:
Name | Type | Description |
---|---|---|
list |
qui.lists.List |
- Source:
setSelected(selected)
Select or deselect item.
Parameters:
Name | Type | Description |
---|---|---|
selected |
Boolean |
- Source:
setSelectMode(selectMode)
Set select mode. This is internally called by owning qui.lists.List
.
Parameters:
Name | Type | Description |
---|---|---|
selectMode |
String | one of: |
- Source:
show()
Show the item.
- Source: