Skip to content

Commit 8c0a2a9

Browse files
authored
Update README.md
1 parent 7edde4a commit 8c0a2a9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ The 2.x version is totally rewritten. while keep the most feature of **bootstrap
77

88
Require: angular 1.2+
99

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.
1111

12-
##Usage
12+
## Usage
1313

1414
1. Install
1515

@@ -39,9 +39,9 @@ Require: angular 1.2+
3939

4040
**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
4141

42-
##Examples
42+
## Examples
4343

44-
###Static Options
44+
### Static Options
4545

4646
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.
4747

@@ -67,10 +67,10 @@ You can use static options which means you can't change the option when the HTML
6767

6868
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.
6969

70-
###Dynamic Options
70+
### Dynamic Options
7171
In this section you'll see several usage of the `nya-bs-option` directive.
7272

73-
####Basic usage
73+
#### Basic usage
7474
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.
7575

7676
```html
@@ -81,7 +81,7 @@ This is the very basic usage, we have an array of object used to generate option
8181
</ol>
8282
```
8383

84-
####Group By Object Property
84+
#### Group By Object Property
8585
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.
8686

8787
```html
@@ -95,14 +95,14 @@ Like vanilla `<select>` we can also generate option group with any property in a
9595
</ol>
9696
```
9797

98-
##TODO
98+
## TODO
9999

100100
- data-header support
101101
- ~~data-container support~~ may not be supported any more
102102
- data-max-options support
103103
- auto dropup support
104104

105-
##How to Contribute
105+
## How to Contribute
106106

107107
This project is built by Grunt, fork this project. and clone to your local repository. Run `yarn install` to install all development dependencies.
108108

@@ -116,6 +116,6 @@ Something should be noticed:
116116
- 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.
117117
- Any feature should work without jquery.
118118

119-
## License ##
119+
## License
120120

121121
Licensed under the MIT license

0 commit comments

Comments
 (0)