Skip to content
PHP Ecosystem
Explore

RegisterClientScript

API reference › Selectize › RegisterClientScript

traityii2\extensions\selectize\RegisterClientScript
Sourcesrc/RegisterClientScript.php
Used by 1 type

Registers per-widget client settings and the optional remote loader.

PropertyTypeDescriptionDefined by
$clientOptionsarrayThe client options for the Selectize widget. Default: [].RegisterClientScript
$loadUrlarrayThe URL for loading remote data for the Selectize widget. Default: [].RegisterClientScript
$queryParamstringName of the request parameter that carries the search text when loading remote data. Default: 'query'.RegisterClientScript
MethodDescriptionDefined by
registerClientScript()Registers the integration asset and initializes Selectize on the widget input.RegisterClientScript
public function registerClientScript(): void

Registers 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.