Skip to content

Commit f47bc26

Browse files
committed
update README
1 parent 19861f3 commit f47bc26

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ app.controller('AppCtrl', function($scope) {
2121

2222
// By default the 'text' property will be used as the display text in the dropdown entry.
2323
// All options that are not dividers must have a 'text' property.
24-
// Or you can specify a different property name via the dropdown-item-label attribute.
24+
// You can specify a different property name in place of 'text' via the dropdown-item-label attribute.
25+
// A divider with a 'text' property will also be non-selectable.
2526
//
2627
// If an options object has an 'href' property set, then that dropdown entry
2728
// will behave as a link and cannot be selected.
2829
$scope.ddSelectOptions = [
29-
{
30-
text: 'divider label',
31-
divider: true
32-
},
3330
{
3431
text: 'Option1',
3532
value: 'a value'
@@ -44,6 +41,12 @@ app.controller('AppCtrl', function($scope) {
4441
// in the menu and cannot be selected.
4542
divider: true
4643
},
44+
{
45+
// Any divider option with a 'text' property will
46+
// behave similarly to a divider and cannot be selected.
47+
divider: true,
48+
text: 'divider label'
49+
},
4750
{
4851
// Example of an option with the 'href' property
4952
text: 'Option4',

0 commit comments

Comments
 (0)