Select2tokenizer

(part of package 'Servoy Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

A Servoy Extra Component that provides a tokenized select input field with auto-complete and multi-selection capabilities.

This is a reference page; many components have detailed usage guides here.

Properties

allowNewEntries

When true, new entries can be added that are not present in the value list. Type: Boolean Default Value: false


clearSearchTextOnSelect

When true, the search text is cleared after an option is selected. Type: Boolean Default Value: false


closeOnSelect

When true, the dropdown closes after an option is selected. Type: Boolean Default Value: true


containSearchText

When true, only options containing the search text are displayed. Type: Boolean Default Value: false


dataProviderID


editable


enabled


hideSelectedItems

Flag indicating whether selected items should be hidden from the dropdown list after being chosen. Type: Boolean Default Value: false


location

Position of the component on the form. Type: Point


maximumSelectionSize

Maximum number of options that can be selected. Type: Number


noMatchesFoundText


openOnUnselect

When true, the dropdown opens automatically when an item is unselected. Type: Boolean Default Value: true


placeholderText


readOnly


searchingText


selectOnClose

When true, an option is automatically selected when the dropdown is closed. Type: Boolean Default Value: false


styleClass


tabSeq


toolTipText


valuelistConfig


valuelistID


visible


Events

onDataChangeMethodID(oldValue,newValue,event)

Called when the value changes.

Parameters:

  • {JSEvent} event The event object associated with the data change.

Returns: {Boolean}


onFocusGainedMethodID(event)

Called when the component gains focus.

Parameters:

  • {JSEvent} event The event object containing details about the focus gained event.


onFocusLostMethodID(event)

Called when the component loses focus.

Parameters:

  • {JSEvent} event The event object containing details about the focus lost event.


API

requestFocus(mustExecuteOnFocusGainedMethod)

Request the focus to this field.

Example:

myElement.requestFocus();

Parameters:

  • {Boolean} [mustExecuteOnFocusGainedMethod] If false will not execute the onFocusGained method; the default value is true



Last updated

Was this helpful?