diff options
author | isteven <isteven@server.fake> | 2014-03-26 17:37:30 +0800 |
---|---|---|
committer | isteven <isteven@server.fake> | 2014-03-26 17:37:30 +0800 |
commit | b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a (patch) | |
tree | ad84219fc9a1cc0fbb2e89d8309432d08484bafb | |
parent | a6647dc1564e3a746bef04dfb8b5abae794824f1 (diff) | |
download | angular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.zip angular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.tar.gz angular-multi-select-b37acfcb3e5e07e26f6e3138e6cc0037c71ec31a.tar.bz2 |
Updated readme.md file
-rw-r--r-- | README.md | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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. |