diff --git a/docs/unstable/directive/faClick/index.md b/docs/unstable/directive/faClick/index.md index 980c06e8..c9b6154a 100644 --- a/docs/unstable/directive/faClick/index.md +++ b/docs/unstable/directive/faClick/index.md @@ -15,6 +15,9 @@ docType: "directive" +
+ This directive is deprecated. + diff --git a/docs/unstable/directive/ngBlur/index.md b/docs/unstable/directive/ngBlur/index.md new file mode 100644 index 00000000..eb3772e7 --- /dev/null +++ b/docs/unstable/directive/ngBlur/index.md @@ -0,0 +1,93 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngBlur/" +title: "ng-blur" +header_sub_title: "Directive in module scripts" +doc: "ngBlur" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-blur + + + +

+ + + + + +Specify custom behavior on blur event. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngBlur + + + + + expression + +

Expression to evaluate upon +blur. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + diff --git a/docs/unstable/directive/ngClick/index.md b/docs/unstable/directive/ngClick/index.md new file mode 100644 index 00000000..9bada7a8 --- /dev/null +++ b/docs/unstable/directive/ngClick/index.md @@ -0,0 +1,74 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngClick/" +title: "ng-click" +header_sub_title: "Directive in module famous.angular" +doc: "ngClick" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-click + + + +

+ + + + + +This is a wrapped for tha default ngCick which allows you to specify custom behavior when an fa-surface is clicked. +the wrapper is also design to be be used on touchscreen devices. It matches all the features supported by ngClick on +including ngTouch module for all types of fa-surface. + +If ngTouch is requried to add touch click capabilites in non F/A elements. Add ngTouch dependence before adding famous.angular otherwise +this functionality will be lost. + + + + + + + +

Usage

+ +```html + + + +``` + + + + + + + +

Example

ng-click on an fa-surface

+

ng-click can be used on an fa-surface. Internally, a Famous Surface has a .on() method that binds a callback function to an event type handled by that Surface. + The function expression bound to ng-click is bound to that fa-surface's click eventHandler, and when the fa-surface is clicked, the function expression will be called.

+
<fa-modifier fa-size="[100, 100]">
+  <fa-surface ng-click="myClickHandler($event)" fa-background-color="'red'"></fa-surface>
+</fa-modifier>
+

```javascript +$scope.myClickHandler = function($event) { + console.log("click"); + console.log($event); +};

+ + + diff --git a/docs/unstable/directive/ngCopy/index.md b/docs/unstable/directive/ngCopy/index.md new file mode 100644 index 00000000..3e1b8492 --- /dev/null +++ b/docs/unstable/directive/ngCopy/index.md @@ -0,0 +1,95 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngCopy/" +title: "ng-copy" +header_sub_title: "Directive in module scripts" +doc: "ngCopy" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-copy + + + +

+ + + + + +Specify custom behavior on copy event. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngCopy + + + + + expression + +

Expression to evaluate upon +copy. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + + diff --git a/docs/unstable/directive/ngCut/index.md b/docs/unstable/directive/ngCut/index.md new file mode 100644 index 00000000..39096bd0 --- /dev/null +++ b/docs/unstable/directive/ngCut/index.md @@ -0,0 +1,95 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngCut/" +title: "ng-cut" +header_sub_title: "Directive in module scripts" +doc: "ngCut" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-cut + + + +

+ + + + + +Specify custom behavior on cut event. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngCut + + + + + expression + +

Expression to evaluate upon +cut. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + + diff --git a/docs/unstable/directive/ngDblclick/index.md b/docs/unstable/directive/ngDblclick/index.md new file mode 100644 index 00000000..b1455d4b --- /dev/null +++ b/docs/unstable/directive/ngDblclick/index.md @@ -0,0 +1,100 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngDblclick/" +title: "ng-dblclick" +header_sub_title: "Directive in module scripts" +doc: "ngDblclick" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-dblclick + + + +

+ + + + + +This wrapped on `ngDblclick` directive allows you to specify custom behavior on a dblclick event on a fa-surface . + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngDblclick + + + + + expression + +

Expression to evaluate upon +a dblclick. (The Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (on double click) + + count: {{count}} + + + + diff --git a/docs/unstable/directive/ngFocus/index.md b/docs/unstable/directive/ngFocus/index.md new file mode 100644 index 00000000..f10e8f5d --- /dev/null +++ b/docs/unstable/directive/ngFocus/index.md @@ -0,0 +1,94 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngFocus/" +title: "ng-focus" +header_sub_title: "Directive in module scripts" +doc: "ngFocus" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-focus + + + +

+ + + + + +Specify custom behavior on focus event. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngFocus + + + + + expression + +

Expression to evaluate upon +focus. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

See TODO:ngClick

+ + + diff --git a/docs/unstable/directive/ngKeydown/index.md b/docs/unstable/directive/ngKeydown/index.md new file mode 100644 index 00000000..0315d596 --- /dev/null +++ b/docs/unstable/directive/ngKeydown/index.md @@ -0,0 +1,98 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngKeydown/" +title: "ng-keydown" +header_sub_title: "Directive in module scripts" +doc: "ngKeydown" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-keydown + + + +

+ + + + + +Specify custom behavior on keydown event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngKeydown + + + + + expression + +

Expression to evaluate upon +keydown. (Event object is available as $event and can be interrogated for keyCode, altKey, etc.)

+ + +
+ + + + + + + +

Example

+ + + key down count: {{count}} + + + + diff --git a/docs/unstable/directive/ngKeypress/index.md b/docs/unstable/directive/ngKeypress/index.md new file mode 100644 index 00000000..d45fe5de --- /dev/null +++ b/docs/unstable/directive/ngKeypress/index.md @@ -0,0 +1,100 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngKeypress/" +title: "ng-keypress" +header_sub_title: "Directive in module scripts" +doc: "ngKeypress" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-keypress + + + +

+ + + + + +Specify custom behavior on keypress event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngKeypress + + + + + expression + +

Expression to evaluate upon +keypress. (Event object is available as $event +and can be interrogated for keyCode, altKey, etc.)

+ + +
+ + + + + + + +

Example

+ + + key press count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngKeyup/index.md b/docs/unstable/directive/ngKeyup/index.md new file mode 100644 index 00000000..a528095a --- /dev/null +++ b/docs/unstable/directive/ngKeyup/index.md @@ -0,0 +1,98 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngKeyup/" +title: "ng-keyup" +header_sub_title: "Directive in module scripts" +doc: "ngKeyup" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-keyup + + + +

+ + + + + +Specify custom behavior on keyup event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngKeyup + + + + + expression + +

Expression to evaluate upon +keyup. (Event object is available as $event and can be interrogated for keyCode, altKey, etc.)

+ + +
+ + + + + + + +

Example

+ + + key up count: {{count}} + + + + diff --git a/docs/unstable/directive/ngMousedown/index.md b/docs/unstable/directive/ngMousedown/index.md new file mode 100644 index 00000000..2797a8c7 --- /dev/null +++ b/docs/unstable/directive/ngMousedown/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMousedown/" +title: "ng-mousedown" +header_sub_title: "Directive in module scripts" +doc: "ngMousedown" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mousedown + + + +

+ + + + + +The ngMousedown directive allows you to specify custom behavior on mousedown event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMousedown + + + + + expression + +

Expression to evaluate upon +mousedown. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (on mouse down) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngMouseenter/index.md b/docs/unstable/directive/ngMouseenter/index.md new file mode 100644 index 00000000..aaf62343 --- /dev/null +++ b/docs/unstable/directive/ngMouseenter/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMouseenter/" +title: "ng-mouseenter" +header_sub_title: "Directive in module scripts" +doc: "ngMouseenter" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mouseenter + + + +

+ + + + + +Specify custom behavior on mouseenter event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMouseenter + + + + + expression + +

Expression to evaluate upon +mouseenter. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (when mouse enters) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngMouseleave/index.md b/docs/unstable/directive/ngMouseleave/index.md new file mode 100644 index 00000000..fcf8760a --- /dev/null +++ b/docs/unstable/directive/ngMouseleave/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMouseleave/" +title: "ng-mouseleave" +header_sub_title: "Directive in module scripts" +doc: "ngMouseleave" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mouseleave + + + +

+ + + + + +Specify custom behavior on mouseleave event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMouseleave + + + + + expression + +

Expression to evaluate upon +mouseleave. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (when mouse leaves) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngMousemove/index.md b/docs/unstable/directive/ngMousemove/index.md new file mode 100644 index 00000000..bdb34d28 --- /dev/null +++ b/docs/unstable/directive/ngMousemove/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMousemove/" +title: "ng-mousemove" +header_sub_title: "Directive in module scripts" +doc: "ngMousemove" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mousemove + + + +

+ + + + + +Specify custom behavior on mousemove event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMousemove + + + + + expression + +

Expression to evaluate upon +mousemove. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (when mouse moves) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngMouseover/index.md b/docs/unstable/directive/ngMouseover/index.md new file mode 100644 index 00000000..629b49a1 --- /dev/null +++ b/docs/unstable/directive/ngMouseover/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMouseover/" +title: "ng-mouseover" +header_sub_title: "Directive in module scripts" +doc: "ngMouseover" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mouseover + + + +

+ + + + + +Specify custom behavior on mouseover event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMouseover + + + + + expression + +

Expression to evaluate upon +mouseover. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (when mouse is over) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngMouseup/index.md b/docs/unstable/directive/ngMouseup/index.md new file mode 100644 index 00000000..ea957dd4 --- /dev/null +++ b/docs/unstable/directive/ngMouseup/index.md @@ -0,0 +1,102 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngMouseup/" +title: "ng-mouseup" +header_sub_title: "Directive in module scripts" +doc: "ngMouseup" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-mouseup + + + +

+ + + + + +Specify custom behavior on mouseup event on a fa-surface. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngMouseup + + + + + expression + +

Expression to evaluate upon +mouseup. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + Increment (on mouse up) + + + count: {{count}} + + + + + diff --git a/docs/unstable/directive/ngPaste/index.md b/docs/unstable/directive/ngPaste/index.md new file mode 100644 index 00000000..16e6e92e --- /dev/null +++ b/docs/unstable/directive/ngPaste/index.md @@ -0,0 +1,94 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngPaste/" +title: "ng-paste" +header_sub_title: "Directive in module scripts" +doc: "ngPaste" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-paste + + + +

+ + + + + +Specify custom behavior on paste event. + + + + + + + +

Usage

+ + ```html + + ... + + ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngPaste + + + + + expression + +

Expression to evaluate upon +paste. (Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + diff --git a/docs/unstable/directive/ngSubmit/index.md b/docs/unstable/directive/ngSubmit/index.md new file mode 100644 index 00000000..d3d56f31 --- /dev/null +++ b/docs/unstable/directive/ngSubmit/index.md @@ -0,0 +1,105 @@ +--- +layout: "docs_api" +version: "unstable" +versionHref: "/docs/unstable" +path: "api/directive/ngSubmit/" +title: "ng-submit" +header_sub_title: "Directive in module scripts" +doc: "ngSubmit" +docType: "directive" +--- + +
+ + Improve this doc + +
+ + + + + +

+ + ng-submit + + + +

+ + + + + +Enables binding angular expressions to onsubmit events on a fa-surface. + +Additionally it prevents the default action (which for form means sending the request to the +server and reloading the current page), but only if the form does not contain `action`, +`data-action`, or `x-action` attributes. + +
+**Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and +`ngSubmit` handlers together. See the +TODO:`form` directive documentation +for a detailed discussion of when `ngSubmit` may be triggered. +
+ + + + + + + +

Usage

+ + ```html +
+ ... +
+ ``` + + +

API

+ + + + + + + + + + + + + + + + + + +
AttrTypeDetails
+ ngSubmit + + + + + expression + +

Expression to eval. +(Event object is available as $event)

+ + +
+ + + + + + + +

Example

+ + + diff --git a/docs/unstable/service/$famous/index.md b/docs/unstable/service/$famous/index.md index 8d1a59b1..36ba0640 100644 --- a/docs/unstable/service/$famous/index.md +++ b/docs/unstable/service/$famous/index.md @@ -10,7 +10,7 @@ docType: "service" ---
- + Improve this doc
diff --git a/famous-angular-docs b/famous-angular-docs index 6741e06d..c0016d12 160000 --- a/famous-angular-docs +++ b/famous-angular-docs @@ -1 +1 @@ -Subproject commit 6741e06d593c0cff7132808909da1d96c38b1bbb +Subproject commit c0016d12f45a0ee7fc8dab9b6c3113abdb0300da diff --git a/famous-angular-examples b/famous-angular-examples index 7c42f7a0..c993fc56 160000 --- a/famous-angular-examples +++ b/famous-angular-examples @@ -1 +1 @@ -Subproject commit 7c42f7a0f4d09dcd57745fb78697534b1b30cab6 +Subproject commit c993fc56645212b60b17d17e71a9ebe924af280a