summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoristeven <isteven@server.fake>2014-03-26 17:37:30 +0800
committeristeven <isteven@server.fake>2014-03-26 17:37:30 +0800
commitb37acfcb3e5e07e26f6e3138e6cc0037c71ec31a (patch)
treead84219fc9a1cc0fbb2e89d8309432d08484bafb
parenta6647dc1564e3a746bef04dfb8b5abae794824f1 (diff)
downloadangular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.zip
angular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.tar.gz
angular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.tar.bz2
Updated readme.md file
-rw-r--r--README.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/README.md b/README.md
index bdaf2ec..40a3283 100644
--- a/README.md
+++ b/README.md
@@ -45,20 +45,22 @@ Below are the available attributes to configure the multi-select directive:
$scope variable. Array of objects.
<br />Example:
$scope.inputList = [
- { firstName: "John", lastName: "Doe" , ....., selected: false },
- { firstName: "Mary", lastName: "Jane" , ....., selected: true },
- { firstName: "Luke", lastName: "Skywalker" , ....., selected: true },
- { firstName: "John", lastName: "Wayne" , ....., selected: true }
- ];
+ <br />{ id: 1, firstName: "Peter", lastName: "Parker", selected: false },
+ <br />{ id: 2, firstName: "Mary", lastName: "Jane", selected: false },
+ <br />{ id: 3, firstName: "Bruce", lastName: "Wayne", selected: true },
+ <br />{ id: 4, firstName: "David", lastName: "Banner", selected: false },
+ <br />{ id: 5, firstName: "Natalia", lastName: "Romanova", selected: false },
+ <br />{ id: 6, firstName: "Clark", lastName: "Kent", selected: true },
+ ];
- #### item-label (REQUIRED)
-The object property that you want to display on the button & checkboxes. Separate multiple values by space.
+input-model property that you want to display on the button & checkboxes. Separate multiple values by space.
<br />Example:
item-label="firstName lastName"
- #### item-ticker (IMPORTANT):
-Column name with a boolean value that represent the state of a checkbox.
+input-model property with a boolean value that represent the state of a checkbox.
<br />For example:
- item-ticker is "selected"
- if selected === true, checkbox will be ticked.