From f34257f5988759cc8a2ed30dfdb47018a5e54fb0 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 1 Jul 2015 18:34:15 +1000 Subject: [PATCH] Split drag.* and input.* docs --- modules/system/assets/ui/docs/drag-scroll.md | 25 +++++++ modules/system/assets/ui/docs/drag-sort.md | 27 +++++++ modules/system/assets/ui/docs/drag-value.md | 19 +++++ modules/system/assets/ui/docs/drag.md | 71 ------------------- .../docs/{input.hotkey.md => input-hotkey.md} | 0 .../{input.monitor.md => input-monitor.md} | 0 .../docs/{input.preset.md => input-preset.md} | 0 .../{input.trigger.md => input-trigger.md} | 0 modules/system/assets/ui/js/input.trigger.js | 29 +------- 9 files changed, 73 insertions(+), 98 deletions(-) create mode 100644 modules/system/assets/ui/docs/drag-scroll.md create mode 100644 modules/system/assets/ui/docs/drag-sort.md create mode 100644 modules/system/assets/ui/docs/drag-value.md delete mode 100644 modules/system/assets/ui/docs/drag.md rename modules/system/assets/ui/docs/{input.hotkey.md => input-hotkey.md} (100%) rename modules/system/assets/ui/docs/{input.monitor.md => input-monitor.md} (100%) rename modules/system/assets/ui/docs/{input.preset.md => input-preset.md} (100%) rename modules/system/assets/ui/docs/{input.trigger.md => input-trigger.md} (100%) diff --git a/modules/system/assets/ui/docs/drag-scroll.md b/modules/system/assets/ui/docs/drag-scroll.md new file mode 100644 index 000000000..086aa97a4 --- /dev/null +++ b/modules/system/assets/ui/docs/drag-scroll.md @@ -0,0 +1,25 @@ +# Drag.Scroll + +Allows the dragging of things. + +# Example + +
+
+
+ Drag the area above left-to-right + + + + \ No newline at end of file diff --git a/modules/system/assets/ui/docs/drag-sort.md b/modules/system/assets/ui/docs/drag-sort.md new file mode 100644 index 000000000..cf36fa9b9 --- /dev/null +++ b/modules/system/assets/ui/docs/drag-sort.md @@ -0,0 +1,27 @@ +# Drag.Sort + +Allows the dragging of things. + +# Example + +
    +
  1. First
  2. +
  3. Second
  4. +
  5. Third
  6. +
+ + + + \ No newline at end of file diff --git a/modules/system/assets/ui/docs/drag-value.md b/modules/system/assets/ui/docs/drag-value.md new file mode 100644 index 000000000..9a88e7799 --- /dev/null +++ b/modules/system/assets/ui/docs/drag-value.md @@ -0,0 +1,19 @@ +# Drag.Value + +Allows the dragging of things. + +# Example + + + + + + diff --git a/modules/system/assets/ui/docs/drag.md b/modules/system/assets/ui/docs/drag.md deleted file mode 100644 index 60ba2dde1..000000000 --- a/modules/system/assets/ui/docs/drag.md +++ /dev/null @@ -1,71 +0,0 @@ -# Drag - -Allows the dragging of things. - -# Example - -

Example: drag.value

- - - - - - - -
- -

Example: drag.scroll

- -
-
-
- Drag the area above left-to-right - - - - - -
- -

Example: drag.sort

- -
    -
  1. First
  2. -
  3. Second
  4. -
  5. Third
  6. -
- - - - \ No newline at end of file diff --git a/modules/system/assets/ui/docs/input.hotkey.md b/modules/system/assets/ui/docs/input-hotkey.md similarity index 100% rename from modules/system/assets/ui/docs/input.hotkey.md rename to modules/system/assets/ui/docs/input-hotkey.md diff --git a/modules/system/assets/ui/docs/input.monitor.md b/modules/system/assets/ui/docs/input-monitor.md similarity index 100% rename from modules/system/assets/ui/docs/input.monitor.md rename to modules/system/assets/ui/docs/input-monitor.md diff --git a/modules/system/assets/ui/docs/input.preset.md b/modules/system/assets/ui/docs/input-preset.md similarity index 100% rename from modules/system/assets/ui/docs/input.preset.md rename to modules/system/assets/ui/docs/input-preset.md diff --git a/modules/system/assets/ui/docs/input.trigger.md b/modules/system/assets/ui/docs/input-trigger.md similarity index 100% rename from modules/system/assets/ui/docs/input.trigger.md rename to modules/system/assets/ui/docs/input-trigger.md diff --git a/modules/system/assets/ui/js/input.trigger.js b/modules/system/assets/ui/js/input.trigger.js index e27d967f8..d86b2263b 100644 --- a/modules/system/assets/ui/js/input.trigger.js +++ b/modules/system/assets/ui/js/input.trigger.js @@ -1,32 +1,7 @@ /* - * The trigger API. + * The trigger API * - * The API allows to change elements' visibility or status (enabled/disabled) basing on - * other elements' statuses. Example: enable a button if any checkbox inside another - * element is checked. - * - * Supported data attributes: - * - data-trigger-action, values: show, hide, enable, disable, empty - * - data-trigger: a CSS selector for elements that trigger the action (checkboxes) - * - data-trigger-condition, values: - * - checked: determines the condition the elements specified in the data-trigger - * should satisfy in order the condition to be considered as "true". - * - value[somevalue]: determines if the value of data-trigger equals the specified value (somevalue) - * the condition is considered "true". - * - data-trigger-closest-parent: optional, specifies a CSS selector for a closest common parent - * for the source and destination input elements. - * - * Example: - * - * Supported events: - * - oc.triggerOn.update - triggers the update. Trigger this event on the element the plugin is bound to to - * force it to check the condition and update itself. This is useful when the page content is updated with AJAX. - * - * JavaScript API: - * $('#mybutton').triggerOn({ triggerCondition: 'checked', trigger: '#cblist input[type=checkbox]', triggerAction: 'enable' }) + * - Documentation: ../docs/input-trigger.md */ +function ($) { "use strict";