diff options
author | isteven <isteven@server.fake> | 2014-04-02 10:48:23 +0800 |
---|---|---|
committer | isteven <isteven@server.fake> | 2014-04-02 10:48:23 +0800 |
commit | 19a4b2b442ca6a142ac198db5acdc7d6c629c9e7 (patch) | |
tree | 019546fde3f86aad96bac6a03331823c0abb1c4f | |
parent | e4a1e49756606a92d2a273adf844715401592f77 (diff) | |
download | angular-multi-select-19a4b2b442ca6a142ac198db5acdc7d6c629c9e7.zip angular-multi-select-19a4b2b442ca6a142ac198db5acdc7d6c629c9e7.tar.gz angular-multi-select-19a4b2b442ca6a142ac198db5acdc7d6c629c9e7.tar.bz2 |
Updated readme.md
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ Angular Multi Select ==================== -Angular Multi Select is an AngularJS directive which creates a dropdown button with multiple checkboxes. It memorizes the original state so you can reset your selections. It also allows you to update the input model dynamically. +Angular Multi Select is an AngularJS directive which creates a dropdown button with multiple checkboxes. <br /> @@ -9,7 +9,8 @@ Demo: http://jsfiddle.net/HwSJH/19/ or download all the files into a same folder Features -- - Reset selections to original state - - Dynamically update the input model + - Directly updates the input model + - Load new input model on the fly - Configurable, such as: - Set which model property to bind to the checkbox status - Set orientation of checkboxes @@ -53,6 +54,7 @@ $scope variable. Array of objects. <br /> { id: 5, firstName: "Natalia", lastName: "Romanova", selected: false }, <br /> { id: 6, firstName: "Clark", lastName: "Kent", selected: true } ]; +<br />**IMPORTANT**: Since the directive updates the $scope variable (input-model) directly, you cannot use the same $scope variable for multiple multi-select directives. You need to copy the $scope variable into a different name and use it on the second multi-select. ##### item-label (REQUIRED) input-model property that you want to display on the button & checkboxes. Separate multiple values by space. |