mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding slider() skel to libraries.
This commit is contained in:
parent
518dd41ca8
commit
4507d2b895
4 changed files with 50 additions and 1 deletions
|
@ -218,5 +218,17 @@ class JqueryEngineHelper extends JsBaseEngineHelper {
|
|||
$template = '%s.droppable({%s});';
|
||||
return $this->_methodTemplate('drop', $template, $options, $callbacks);
|
||||
}
|
||||
/**
|
||||
* Slider
|
||||
*
|
||||
* Requires the Ui.Core and Ui.Slider to be loaded.
|
||||
*
|
||||
* @param array $options Array of options for the slider.
|
||||
* @return string Completed slider script.
|
||||
* @see JsHelper::slider() for options list.
|
||||
**/
|
||||
function slider($options = array()) {
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -583,6 +583,20 @@ class JsBaseEngineHelper extends AppHelper {
|
|||
function sortable() {
|
||||
trigger_error(sprintf(__('%s does not have sortable() implemented', true), get_class($this)), E_USER_WARNING);
|
||||
}
|
||||
/**
|
||||
* Create a slider UI widget. Comprised of a track and knob
|
||||
*
|
||||
* ### Options
|
||||
*
|
||||
* ### Event Options
|
||||
*
|
||||
*
|
||||
* @param array $options Array of options for the slider. See above.
|
||||
* @return string Completed slider script.
|
||||
**/
|
||||
function slider() {
|
||||
trigger_error(sprintf(__('%s does not have slider() implemented', true), get_class($this)), E_USER_WARNING);
|
||||
}
|
||||
/**
|
||||
* Parse an options assoc array into an Javascript object literal.
|
||||
* Similar to object() but treats any non-integer value as a string,
|
||||
|
|
|
@ -270,6 +270,17 @@ class MootoolsEngineHelper extends JsBaseEngineHelper {
|
|||
$this->selection = $options['droppables'];
|
||||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Slider
|
||||
*
|
||||
* Requires the `Slider` plugin from MootoolsMore
|
||||
*
|
||||
* @param array $options Array of options for the slider.
|
||||
* @return string Completed slider script.
|
||||
* @see JsHelper::slider() for options list.
|
||||
**/
|
||||
function slider($options = array()) {
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -251,5 +251,17 @@ class PrototypeEngineHelper extends JsBaseEngineHelper {
|
|||
}
|
||||
return 'Droppables.add(' . $this->selection . $options . ');';
|
||||
}
|
||||
/**
|
||||
* Slider
|
||||
*
|
||||
* Requires the Scriptaculous to be loaded.
|
||||
*
|
||||
* @param array $options Array of options for the slider.
|
||||
* @return string Completed slider script.
|
||||
* @see JsHelper::slider() for options list.
|
||||
**/
|
||||
function slider($options = array()) {
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Reference in a new issue