Skip to content

Commit b04ee16

Browse files
committed
fix #143, fix some markdown syntax error
1 parent d5306fb commit b04ee16

19 files changed

+63
-43
lines changed

docs/dist/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* nya-bootstrap-select v2.1.7
2+
* @lordfriend/nya-bootstrap-select v2.1.8
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/

docs/dist/css/nya-bs-select.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* nya-bootstrap-select v2.1.7
2+
* @lordfriend/nya-bootstrap-select v2.1.8
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/

docs/dist/js/nya-bs-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* nya-bootstrap-select v2.1.7
2+
* @lordfriend/nya-bootstrap-select v2.1.8
33
* Copyright 2014 Nyasoft
44
* Licensed under MIT license
55
*/

docs/src/content/api/nya-bs-config-provider.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#nyaBsConfigProvider
1+
# nyaBsConfigProvider
22

33
This provider help the developer configure the default text appearance of nya-bs-select base on user-agent localization. Default implementation of the locale text is `en-us`.
44

@@ -32,29 +32,41 @@ There are three default text can be configured. Each one has two form, pure text
3232
<p>**To show a count of selected items. this text string or template should contains a `%d` which will be replaced with number**</p>
3333
</td>
3434
</tr>
35+
<tr>
36+
<td>selectAll</td>
37+
<td>selectAllTpl</td>
38+
<td>selectAll is the action button to select all options by a single click. It is available by setting actions-box="true"</td>
39+
</tr>
40+
<tr>
41+
<td>deselectAll</td>
42+
<td>deselectAllTpl</td>
43+
<td>deselectAll is the action button to deselect all options by a single click. It is available by setting actions-box="true"</td>
44+
</tr>
3545
</tbody>
3646
</table>
3747

3848
>NOTE: You shouldn't use any angular directive or expression in template, it will not be parsed.
3949
40-
###Methods
50+
### Methods
4151

42-
####`setLocalizedText(localeId, configObj);`
52+
#### `setLocalizedText(localeId, configObj);`
4353

4454
Register a new locale configuration or override an existing locale configuration.
4555

4656
- `localeId` a string formatted as languageId-countryId, e.g. en-us
47-
- `configObj` a localized configuration object. should contain one of the three properties.
57+
- `configObj` a localized configuration object. should contain one of the five properties.
4858

4959
```javascript
5060
{
5161
defaultNoneSelection: 'Nothing selected',
5262
noSearchResult: 'NO SEARCH RESULT',
53-
numberItemSelected: '%d item selected'
63+
numberItemSelected: '%d item selected',
64+
selectAll: 'Select All',
65+
deselectAll: 'Deselect All'
5466
}
5567
```
5668

57-
####`useLocale(localeId);`
69+
#### `useLocale(localeId);`
5870

5971
Force to use a special locale configuration with given localeId.
6072

docs/src/content/api/nya-bs-option.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#nyaBsOption
1+
# nyaBsOption
22

33
The main function of this directive is manipulating an option list base on given collection.
44
its expression is very similar as `ng-repeat` but add a little magic to support the special scenario of select component.
@@ -59,17 +59,17 @@ the generated options list will resorted by the result of the expression, and `$
5959
</tbody>
6060
</table>
6161

62-
###Special class generated on each element.
62+
### Special class generated on each element.
6363

6464
When using `group by` expression, the `nyaBsOption` will generate a class `group-item` on each repeated element.
6565
To identify the first element of each group. It will also add a class `first-in-group` on the first element of a group.
6666
Theses class has some special styles to build the group header.
6767

68-
###Directive Info
68+
### Directive Info
6969
This directive creates new scope.
7070
This directive executes at priority level 1000.
7171

72-
###Usage
72+
### Usage
7373

7474
as attribute:
7575
```html
@@ -83,7 +83,7 @@ as attribute:
8383
</li>
8484
```
8585

86-
###Arguments
86+
### Arguments
8787
<table class="table table-striped">
8888
<thead>
8989
<tr>

docs/src/content/api/nya-bs-select.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#nyaBsSelect
1+
# nyaBsSelect
22

33
nyaBsSelect is the main directive of this module. You can consider it as a select directive. It manipulates the the dropdown-toggle content and all user interaction.
44

5-
###Usage
5+
### Usage
66

77
as element:
88
```html
@@ -15,7 +15,8 @@ as element:
1515
[disabled=""]
1616
[size=""]
1717
[selected-text-format=""]
18-
[title=""]>
18+
[title=""]
19+
[actions-box=""]>
1920
...
2021
</nya-bs-select>
2122
```
@@ -32,7 +33,8 @@ as attribute:
3233
[disabled=""]
3334
[size=""]
3435
[selected-text-format=""]
35-
[title=""]>
36+
[title=""]
37+
[actions-box=""]>
3638
...
3739
</ANY>
3840
```
@@ -49,12 +51,13 @@ as class:
4951
[disabled=""]
5052
[size=""]
5153
[selected-text-format=""]
52-
[title=""]>
54+
[title=""]
55+
[actions-box=""]>
5356
...
5457
</ANY>
5558
```
5659

57-
###Arguments
60+
### Arguments
5861

5962
<table class="table table-striped">
6063
<thead>
@@ -123,5 +126,10 @@ as class:
123126
<td><small class="label label-primary">string</small></td>
124127
<td>provide a replacement for default text when nothing is selected.</td>
125128
</tr>
129+
<tr>
130+
<td>actions-box(optional)</td>
131+
<td><small class="label label-primary">string</small></td>
132+
<td>Enable the actions box which contains two action select all and deselect all to do batch operation</td>
133+
</tr>
126134
</tbody>
127135
</table>

docs/src/content/examples/actions-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Actions Box
1+
# Actions Box
22

33
Actions Box is an additional toggle button inside dropdown menu that give you ability to select/un-select all options with a single click.
44

docs/src/content/examples/alternative-display.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Alternative Display
1+
# Alternative Display
22

33
This is a feature borrowed from Bootstrap-select. Add a `title` attribute to each `nya-bs-option`, when an option is selected, the `title` value will be displayed in dropdown-toggle button instead of the content of option.
44

docs/src/content/examples/basic-usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Basic Usage
1+
# Basic Usage
22

33
nya-bootstrap-select is an directive combination. The main directive is `nya-bs-select`. This directive maintain the value of ng-model and dropdown and toggle button presentation.
44
You need to add your options using `<li>` element as children of `nya-bs-select`. You can either add static options or generate options using `nya-bs-option`.
@@ -7,7 +7,7 @@ An option is, in fact, an dropdown list element. So you need to add an anchor el
77

88
To make multiple selection. just add `multiple` into `nya-bs-select` element.
99

10-
###Static Options
10+
### Static Options
1111

1212
Static Options don't change. you need to add `nya-bs-option` class to each of your `<li>` element to make them as options. Beside, you also need to use `data-value` attribute to specify the value of each option.
1313

@@ -44,7 +44,7 @@ $scope.model2 = ['b', 'c'];
4444
</example>
4545

4646

47-
###Dynamic Options
47+
### Dynamic Options
4848

4949
If you want to generate options from a collection, `nya-bs-option` directive is right for you. Just think it is an alias of `ng-repeat`, with some tweak and magic to support our options and groups.
5050

docs/src/content/examples/control-dropdown-menu-size.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Control Dropdown Menu Size
1+
# Control Dropdown Menu Size
22

33
This feature is borrowed from Bootstrap-select. It give you ability to control the height of dropdown menu to display certain number of options. To use this feature, add an attribute `data-size` or `size`
44
on `nya-bs-select` element. the value of the attribute is the max number of options you want to display. If the number exceed the limit, an scrollbar will be shown on the dropdown menu.

0 commit comments

Comments
 (0)