Adding slider() skel to libraries.

This commit is contained in:
mark_story 2009-04-15 23:59:13 -04:00
parent 518dd41ca8
commit 4507d2b895
4 changed files with 50 additions and 1 deletions

View file

@ -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()) {
}
}
?>

View file

@ -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,

View file

@ -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()) {
}
}
?>

View file

@ -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()) {
}
}
?>