14 |
15 | 16 |
17 |

Extras

18 |
19 |

Not popup without dropdownToggle directive

20 | 21 | 27 | 28 |

Popup with dropdownToggle directive

29 | 30 | 36 | 37 |
38 |
39 | 40 | 41 |
42 |

Simple usage

43 |
44 |

Works with simple select

45 |
Model value: {{model || "''"}}
46 | 52 | 53 |

Works with ngIf

54 |

To work with ngIf, set ng-model to $parent ng-model="$parent.model"

55 |
Model value: {{model || "''"}}
56 |
Show/Hide
57 | 58 |
59 | 65 |
66 | 67 |

Works with ngDisable

68 |
Model value: {{model || "''"}}
69 |
Enabled/Disabled
70 | 71 |
72 | 78 |
79 | 80 |

Works with optgroup

81 |
Model value: {{model || "''"}}
82 |
83 | 93 |
94 | 95 |

Works with ngOptions

96 |
Model value: {{model || "''"}}
97 |
Colors: {{colors | json}}
98 |
99 | 102 |
103 | 104 |

Works with ngRepeat

105 |

To work with ngRepeat, set ng-model to $parent ng-model="$parent.model"

106 |
107 |
108 | 109 | 112 |
113 |
114 |
115 |
116 | 117 | 118 |
119 |

Style usage

120 |
121 |

Works with selectpicker style option

122 |

You can set different Bootstrap classes via the selectpicker style option

123 | 129 |
130 |
131 |

Works with data-style

132 |

You can set different Bootstrap classes via the data-style attribute

133 | 141 |
142 |
143 |

Works with option data-content

144 | 152 |
153 |
154 |

Works with option data-icon

155 |

TODO: interpolate

156 | 164 |
165 |
166 |

Works with option data-icon and ngOptions

167 | 171 |
172 |
173 |
174 |