Skip to content
Permalink
Browse files

Adding slider() skel to libraries.

  • Loading branch information...
markstory committed Apr 16, 2009
1 parent 518dd41 commit 4507d2b8955d8eb56a1a9aa2029630ca9743b2f0
@@ -218,5 +218,17 @@ function drop($options = array()) {
$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 @@ function drop($options = array()) {
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 @@ function drop($options = array()) {
$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 @@ function drop($options = array()) {
}
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()) {
}
}
?>

0 comments on commit 4507d2b

Please sign in to comment.
You can’t perform that action at this time.