Methods
_createSearchChoice(term) → {Object}
Create new dummy choice for select2 when the user
types an arbitrary string
Parameters:
Name | Type | Description |
---|---|---|
term |
string | entered term |
Returns:
dummy tag
- Type
- Object
_formatDropDownResult(data) → {string}
Formats a single dropdown result
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | data to format |
Returns:
HTML markup
- Type
- string
_formatSelection(data) → {string}
Formats a single selection item
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | data to format |
Returns:
HTML markup
- Type
- string
_onClickDeleteTag(ev)
Event handler whenever a tag must be deleted
Parameters:
Name | Type | Description |
---|---|---|
ev |
Object | event |
_onClickRenameTag()
Event handler whenever the user clicked the "rename" action.
This will display the rename field.
_onDeselectTag(e)
Event handler whenever a tag gets deselected.
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | event |
_onSelectTag(e)
Event handler whenever a tag is selected.
Also called whenever tag creation is requested through the dummy tag object.
Parameters:
Name | Type | Description |
---|---|---|
e |
Object | event |
_onSubmitRenameTag(ev)
Event handler whenever the rename form has been submitted after
the user entered a new tag name.
This will submit the change to the server.
Parameters:
Name | Type | Description |
---|---|---|
ev |
Object | event |
_queryTagsAutocomplete(query)
Autocomplete function for dropdown results
Parameters:
Name | Type | Description |
---|---|---|
query |
Object | select2 query object |
_refreshSelection()
Refreshes the selection, triggering a call to
select2's initSelection
initialize(optionsopt)
Creates a new SystemTagsInputField
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
render()
Renders this details view