Class yii\jui\Slider

Inheritanceyii\jui\Slider » yii\jui\Widget » yii\base\Widget
Available since version2.0

Slider renders a slider jQuery UI widget.

echo Slider::widget([
    'clientOptions' => [
        'min' => 1,
        'max' => 10,
    ],
]);

See also http://api.jqueryui.com/slider/.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$clientEvents array The event handlers for the underlying jQuery UI widget. yii\jui\Widget
$clientOptions array The options for the underlying jQuery UI widget. yii\jui\Widget
$options array The HTML attributes for the widget container tag. yii\jui\Widget

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$clientEventMap array Event names mapped to what should be specified in `. yii\jui\Slider

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() Initializes the widget. yii\jui\Widget
run() Executes the widget. yii\jui\Slider

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
registerClientEvents() Registers a specific jQuery UI widget events yii\jui\Widget
registerClientOptions() Registers a specific jQuery UI widget options yii\jui\Widget
registerWidget() Registers a specific jQuery UI widget asset bundle, initializes it with client options and registers related events yii\jui\Widget

Property Details

$clientEventMap protected property

Event names mapped to what should be specified in .on(). If empty, it is assumed that event passed to clientEvents is prefixed with widget name.

protected array $clientEventMap = ['change' => 'slidechange''create' => 'slidecreate''slide' => 'slide''start' => 'slidestart''stop' => 'slidestop']

Method Details

run() public method

Executes the widget.

public void run ( )