Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding slider() skel to libraries.

  • Loading branch information...
commit 4507d2b8955d8eb56a1a9aa2029630ca9743b2f0 1 parent 518dd41
@markstory markstory authored
View
12 cake/libs/view/helpers/jquery_engine.php
@@ -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()) {
+
+ }
}
?>
View
14 cake/libs/view/helpers/js.php
@@ -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 { }
View
13 cake/libs/view/helpers/mootools_engine.php
@@ -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()) {
+
+ }
}
?>
View
12 cake/libs/view/helpers/prototype_engine.php
@@ -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()) {
+
+ }
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.