You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ The 2.x version is totally rewritten. while keep the most feature of **bootstrap
7
7
8
8
Require: angular 1.2+
9
9
10
-
###This project is currently in maintenance state, it will only accept bug fix Pull Request, will not accept any new feature.
10
+
###This project is currently in maintenance state, it will only accept bug fix Pull Request, will not accept any new feature.
11
11
12
-
##Usage
12
+
##Usage
13
13
14
14
1. Install
15
15
@@ -39,9 +39,9 @@ Require: angular 1.2+
39
39
40
40
**Migrate from 1.x** If you have used the previous version of this directive. you need to replace the old code in the template. See the examples below
41
41
42
-
##Examples
42
+
##Examples
43
43
44
-
###Static Options
44
+
###Static Options
45
45
46
46
You can use static options which means you can't change the option when the HTML code is ready. Under this usage, you don't use the `nya-bs-option` directive, but you should add `nya-bs-option` class to all the `<li>` element and `data-value` attribute to let the directive know you option's value.
47
47
@@ -67,10 +67,10 @@ You can use static options which means you can't change the option when the HTML
67
67
68
68
If you decide to use static option, you shouldn't change the option any more, otherwise you may need the `nya-bs-option` directive to generate options dynamically.
69
69
70
-
###Dynamic Options
70
+
###Dynamic Options
71
71
In this section you'll see several usage of the `nya-bs-option` directive.
72
72
73
-
####Basic usage
73
+
####Basic usage
74
74
This is the very basic usage, we have an array of object used to generate options. the `myModel` will be one of the objects in the `options` array. if you add an `multiple` attribute to the `nya-bs-select` element. `myModel` will be array of objects.
75
75
76
76
```html
@@ -81,7 +81,7 @@ This is the very basic usage, we have an array of object used to generate option
81
81
</ol>
82
82
```
83
83
84
-
####Group By Object Property
84
+
####Group By Object Property
85
85
Like vanilla `<select>` we can also generate option group with any property in an object. if you `options` is an array of object. like [{name: "alpha", group: "Group 1"}, {name: "beta", group: "Group 2}, {name: "charlie", group: "Group 2"}]. then we can use group by in `nya-bs-option` expression to generate group.
86
86
87
87
```html
@@ -95,14 +95,14 @@ Like vanilla `<select>` we can also generate option group with any property in a
95
95
</ol>
96
96
```
97
97
98
-
##TODO
98
+
##TODO
99
99
100
100
- data-header support
101
101
-~~data-container support~~ may not be supported any more
102
102
- data-max-options support
103
103
- auto dropup support
104
104
105
-
##How to Contribute
105
+
##How to Contribute
106
106
107
107
This project is built by Grunt, fork this project. and clone to your local repository. Run `yarn install` to install all development dependencies.
108
108
@@ -116,6 +116,6 @@ Something should be noticed:
116
116
- For any Pull Request, you should only modify the src files and documents, test specs. Do not update dist files, package.json, bower.json or try to update project version.
0 commit comments