File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,12 @@ app.controller('AppCtrl', function($scope) {
21
21
22
22
// By default the 'text' property will be used as the display text in the dropdown entry.
23
23
// 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.
25
26
//
26
27
// If an options object has an 'href' property set, then that dropdown entry
27
28
// will behave as a link and cannot be selected.
28
29
$scope .ddSelectOptions = [
29
- {
30
- text: ' divider label' ,
31
- divider: true
32
- },
33
30
{
34
31
text: ' Option1' ,
35
32
value: ' a value'
@@ -44,6 +41,12 @@ app.controller('AppCtrl', function($scope) {
44
41
// in the menu and cannot be selected.
45
42
divider: true
46
43
},
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
+ },
47
50
{
48
51
// Example of an option with the 'href' property
49
52
text: ' Option4' ,
You can’t perform that action at this time.
0 commit comments