From 2b3f17adeae3034e98eca2989d44021f71008a14 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Fri, 31 Jul 2015 18:05:30 +1000 Subject: [PATCH] Revise Script UI docs --- modules/system/assets/ui/docs/checkbox.md | 10 ++++ modules/system/assets/ui/docs/drag-scroll.md | 24 ++++---- modules/system/assets/ui/docs/drag-sort.md | 54 +++++++++--------- modules/system/assets/ui/docs/drag-value.md | 45 +++++++++++++-- modules/system/assets/ui/docs/input-hotkey.md | 12 +++- .../system/assets/ui/docs/input-monitor.md | 6 +- .../system/assets/ui/docs/input-trigger.md | 55 ++++++++++++------- 7 files changed, 139 insertions(+), 67 deletions(-) diff --git a/modules/system/assets/ui/docs/checkbox.md b/modules/system/assets/ui/docs/checkbox.md index 7ba2de0cc..addbba6d9 100644 --- a/modules/system/assets/ui/docs/checkbox.md +++ b/modules/system/assets/ui/docs/checkbox.md @@ -43,3 +43,13 @@ Allows a user to select from a small set of binary options. + +If you don't define `data-control="balloon-selector"` then the control will act as a static list of labels. + +
+ +
diff --git a/modules/system/assets/ui/docs/drag-scroll.md b/modules/system/assets/ui/docs/drag-scroll.md index 086aa97a4..627b6d946 100644 --- a/modules/system/assets/ui/docs/drag-scroll.md +++ b/modules/system/assets/ui/docs/drag-scroll.md @@ -1,23 +1,25 @@ # Drag.Scroll -Allows the dragging of things. +Allows the elements with `overflow: hidden` to be dragged. -# Example +### Example + +Drag the area above left-to-right.
- Drag the area above left-to-right + + + + +## JavaScript API: The `sortable()` method must be invoked on valid containers, meaning they must match the containerSelector option. @@ -80,27 +106,3 @@ Serialize all selected containers. Returns a jQuery object . Use .get() to retri - `nested`: If true, search for nested containers within an item.If you nest containers, either the original selector with which you call the plugin must only match the top containers, or you need to specify a group (see the bootstrap nav example) - `vertical`: If true, the items are assumed to be arranged vertically - -# 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 index 9a88e7799..00b44fa2c 100644 --- a/modules/system/assets/ui/docs/drag-value.md +++ b/modules/system/assets/ui/docs/drag-value.md @@ -1,19 +1,52 @@ # Drag.Value -Allows the dragging of things. +Allows the dragging of elements that result in a custom value when dropped. -# Example - - +

+ +

+ +### Clickable + +You can make elements clickable from another input by defining `data-drag-click="true"`. + +

+ +

+ +
+ +
\ 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 index d8d435324..7bf4a3e83 100644 --- a/modules/system/assets/ui/docs/input-hotkey.md +++ b/modules/system/assets/ui/docs/input-hotkey.md @@ -1,14 +1,20 @@ # Input Hotkey API -Scripts that manage user input events. +Allows keyboard shortcuts (hotkeys) to be bound to an element's click event. # Example - - diff --git a/modules/system/assets/ui/docs/input-monitor.md b/modules/system/assets/ui/docs/input-monitor.md index a2c019b26..40ad9f8c3 100644 --- a/modules/system/assets/ui/docs/input-monitor.md +++ b/modules/system/assets/ui/docs/input-monitor.md @@ -1,6 +1,8 @@ # Input Monitoring -Scripts that manage user input events. +This will monitor the user input for unsaved changes and show a confirmation box if the user attempts to leave the page. -# Example +### Example + +TBA diff --git a/modules/system/assets/ui/docs/input-trigger.md b/modules/system/assets/ui/docs/input-trigger.md index f6b3e47d0..1b66f9142 100644 --- a/modules/system/assets/ui/docs/input-trigger.md +++ b/modules/system/assets/ui/docs/input-trigger.md @@ -2,7 +2,42 @@ 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: +## Example + +### Checked condition + + + + +### Value condition + +

+ +

+ +
+ +
+ Passphrase is valid! +
+
+ + +## Supported data attributes: - data-trigger-action, values: show, hide, enable, disable, empty - data-trigger: a CSS selector for elements that trigger the action (checkboxes) @@ -38,21 +73,3 @@ Multie value conditions are supported: trigger: '#cblist input[type=checkbox]', triggerAction: 'enable' }) - -# Example - - - - - -