Class \Prado\Web\UI\JuiControls\TJuiSlider
TJuiSlider class.
TJuiSlider is an extension to TActivePanel based on jQuery-UI's Slider widget.
<com:TJuiSlider
ID="slider1"
Options.Min="0"
Options.Max="100"
Options.Step="10"
Options.Value="50"
OnStop="slider1_changed"
/>
To retrieve the current value of the slider during callback, get the value property of the callback request parameter within the TJuiEventParameter.
public function slider1_changed($sender, $param) {
$value = $param->getCallbackParameter()->value;
}
Class hierarchy
- \Prado\Web\UI\JuiControls\TJuiSlider implements IJuiOptions, ICallbackEventHandler
- \Prado\Web\UI\ActiveControls\TActivePanel implements IActiveControl
- \Prado\Web\UI\WebControls\TPanel
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.0
public
|
__construct() : mixed
Creates a new callback control, sets the adapter to
TActiveControlAdapter. If you override this class, be sure to set the
adapter appropriately by, for example, by calling this constructor.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
raiseCallbackEvent(TCallbackEventParameter $param) : mixed
Raises callback event. This method is required by the {@see \Prado\Web\UI\ActiveControls\ICallbackEventHandler}
interface.
|
protected
|
addAttributesToRender(mixed $writer) : mixed
Ensure that the ID attribute is rendered and registers the javascript code
for initializing the active control.
|
protected
|