RegisterClientScript
API reference › Selectize › RegisterClientScript
Used by 1 type
Registers per-widget client settings and the optional remote loader.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$clientOptions | array | The client options for the Selectize widget. Default: []. | RegisterClientScript |
$loadUrl | array | The URL for loading remote data for the Selectize widget. Default: []. | RegisterClientScript |
$queryParam | string | Name of the request parameter that carries the search text when loading remote data. Default: 'query'. | RegisterClientScript |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
registerClientScript() | Registers the integration asset and initializes Selectize on the widget input. | RegisterClientScript |
Method details
Section titled “Method details”registerClientScript()
Section titled “registerClientScript() ”public function registerClientScript(): voidRegisters the integration asset and initializes Selectize on the widget input.
When $loadUrl is not empty, adds a load callback that requests remote data with the search text.