diff --git a/.gitmodules b/.gitmodules index 368a9cd..4ee1af8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,21 @@ [submodule "angular-ui"] path = angular-ui url = git://github.com/angular-ui/angular-ui.git +[submodule "lib/select2"] + path = lib/select2 + url = git://github.com/ivaynberg/select2.git +[submodule "lib/qTip2"] + path = lib/qTip2 + url = git://github.com/Craga89/qTip2.git +[submodule "lib/maskedinput"] + path = lib/maskedinput + url = git://github.com/digitalBush/jquery.maskedinput.git +[submodule "lib/bootstrap"] + path = lib/bootstrap + url = git://github.com/twitter/bootstrap.git +[submodule "lib/tinymce"] + path = lib/tinymce + url = git://github.com/tinymce/tinymce.git +[submodule "lib/CodeMirror2"] + path = lib/CodeMirror2 + url = https://github.com/marijnh/CodeMirror2 diff --git a/angular-ui b/angular-ui index 8689154..87c33b8 160000 --- a/angular-ui +++ b/angular-ui @@ -1 +1 @@ -Subproject commit 8689154fbf56e42c6d1970435cf037f4b5f03635 +Subproject commit 87c33b8537c551a817d9565bc85fcd855f9f4391 diff --git a/index.html b/index.html index 4b893a7..5d7e2d1 100644 --- a/index.html +++ b/index.html @@ -4,25 +4,30 @@
IDE? In my textareas? Surely you're joking.
+ +
+<textarea ui-codemirror="{theme:'monokai'}" ng-model="codeMirrorModel"></textarea>
+
+ Calendar picker with ng-model integration
Selected Date: {{date}}
-Formatted Date: {{ date.toLocaleDateString()}}
-Selected Month: {{date.getMonth()}}
+Selected Date: {{ date }}
+Formatted Date: {{ date.toLocaleDateString() }}
+Selected Month: {{ date.getMonth() }}
<input ng-model="date" ui-date>
-Selected Date: {{date}}
-Formatted Date: {{ date.toLocaleDateString()}}
-Selected Month: {{date.getMonth()}}
+Selected Date: {{ date }}
+Formatted Date: {{ date.toLocaleDateString() }}
+Selected Month: {{ date.getMonth() }}
<div ng-model="date" ui-date></div>
@@ -217,7 +241,7 @@ Bind an event to a particular keypress
- +Cuz you feel like it? Maybe I should stop doing the 'Why' sections, running out of explanations...
The directive takes a hash (object) with the key code as the key and the callback function to fire as the value. The callback function takes an 'event' param
Note that 13 represents the RETURN key code.
-<textarea ui-keypress="{ 13 : keypressCallback }"></textarea>
+<textarea ui-keypress="{ 13 : 'keypressCallback()' }"></textarea>
<script>
-$scope.keypressCallback = function(e) {
- e.preventDefault();
+$scope.keypressCallback = function() {
alert('Voila!');
};
</script>
@@ -245,7 +268,7 @@ Mask
What?
-
+
Why?
@@ -310,7 +333,7 @@ How?
Adds an icon or link that empties the input element
- +Convenience?
<input value="Hover over me" ui-reset>+
+<input ng-model="resetModel" ui-reset> + +<script> +$scope.resetModal = 'Hover over me'; +</script> +