Permalink
Browse files

Adding slider() skel to libraries.

  • Loading branch information...
1 parent 518dd41 commit 4507d2b8955d8eb56a1a9aa2029630ca9743b2f0 @markstory markstory committed Apr 16, 2009
@@ -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()) {
+
+ }
}
?>
@@ -584,6 +584,20 @@ 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,
* does not include { }
@@ -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.