From 1017990abe84b3790cf98a90866f2a7bfc65a59b Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 30 May 2015 17:22:13 +1000 Subject: [PATCH] Write examples + test trigger, hotkey and preset --- modules/system/assets/ui/docs/drag.md | 4 +- modules/system/assets/ui/docs/input.md | 39 +++++++++++++++++++- modules/system/assets/ui/js/input.hotkey.js | 3 ++ modules/system/assets/ui/js/input.monitor.js | 3 ++ 4 files changed, 45 insertions(+), 4 deletions(-) diff --git a/modules/system/assets/ui/docs/drag.md b/modules/system/assets/ui/docs/drag.md index 1b5ad616d..60ba2dde1 100644 --- a/modules/system/assets/ui/docs/drag.md +++ b/modules/system/assets/ui/docs/drag.md @@ -20,7 +20,7 @@ Allows the dragging of things. Drop "Bar" -
+

Example: drag.scroll

@@ -44,7 +44,7 @@ Allows the dragging of things. $('#scrollExample').dragScroll(); -
+

Example: drag.sort

diff --git a/modules/system/assets/ui/docs/input.md b/modules/system/assets/ui/docs/input.md index 9f857feac..7484b5a92 100644 --- a/modules/system/assets/ui/docs/input.md +++ b/modules/system/assets/ui/docs/input.md @@ -1,7 +1,42 @@ # Input -Scripts that manage user input events +Scripts that manage user input events. # Example -... \ No newline at end of file +

Example: input.hotkey

+ + + + + +
+ +

Example: input.preset

+ + + + +
+ +

Example: input.trigger

+ + + + +
+ +

Example: input.monitor

+ diff --git a/modules/system/assets/ui/js/input.hotkey.js b/modules/system/assets/ui/js/input.hotkey.js index 80f99f237..9b6c9f328 100644 --- a/modules/system/assets/ui/js/input.hotkey.js +++ b/modules/system/assets/ui/js/input.hotkey.js @@ -1,3 +1,6 @@ +/* +=require foundation.js +*/ /* * Hot key binding. * diff --git a/modules/system/assets/ui/js/input.monitor.js b/modules/system/assets/ui/js/input.monitor.js index e6bd1704e..c964d3b3e 100644 --- a/modules/system/assets/ui/js/input.monitor.js +++ b/modules/system/assets/ui/js/input.monitor.js @@ -1,3 +1,6 @@ +/* +=require foundation.js +*/ /* * The form change monitor API. *