Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Custom icon classes #443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -68,6 +68,8 @@ export default function dropdownMultiselectController(
showEnableSearchButton: false,
closeOnSelect: false,
buttonClasses: 'btn btn-default',
selectedIconClass: 'glyphicon glyphicon-ok',
deselectedIconClass: 'glyphicon glyphicon-remove',
closeOnDeselect: false,
groupBy: undefined,
checkBoxes: false,
8 changes: 4 additions & 4 deletions src/app/component/angularjs-dropdown-multiselect.html
Original file line number Diff line number Diff line change
@@ -17,15 +17,15 @@
data-ng-click="selectAll()"
tabindex="-1"
id="selectAll">
<span class="glyphicon glyphicon-ok"></span>
<span ng-class="::settings.selectedIconClass"></span>
{{texts.checkAll}}
</a>
<li ng-if="settings.showUncheckAll">
<a ng-keydown="keyDownLink($event)"
data-ng-click="deselectAll();"
tabindex="-1"
id="deselectAll">
<span class="glyphicon glyphicon-remove"></span>
<span ng-class="::settings.deselectedIconClass"></span>
{{texts.uncheckAll}}
</a>
</li>
@@ -100,7 +100,7 @@
</label>
</div>
<span ng-if="!settings.checkBoxes"
data-ng-class="{'glyphicon glyphicon-ok': isChecked(option)}">
data-ng-class="{'{{::settings.selectedIconClass}}' : isChecked(option)}">
</span>
<span dm-dropdown-static-include="{{settings.template}}"></span>
</a>
@@ -126,7 +126,7 @@
</label>
</div>
<span ng-if="!settings.checkBoxes"
data-ng-class="{'glyphicon glyphicon-ok': isChecked(option)}">
data-ng-class="{'{{::settings.selectedIconClass}}' : isChecked(option)}">
</span>
<span ng-if="!settings.checkBoxes"
dm-dropdown-static-include="{{settings.template}}"></span>
12 changes: 12 additions & 0 deletions src/app/main/main.template.html
Original file line number Diff line number Diff line change
@@ -1262,6 +1262,18 @@ <h2>Settings</h2>
<td>btn btn-default</td>
<td>The CSS classes that used for setting the style of the button.</td>
</tr>
<tr>
<td>selectedIconClass</td>
<td>String</td>
<td>glyphicon glyphicon-ok</td>
<td>CSS class applied to the icon that appears next to each selected item and Check All option.</td>
</tr>
<tr>
<td>deselectedIconClass</td>
<td>String</td>
<td>glyphicon glyphicon-remove</td>
<td>CSS class applied to the icon that appears next to the Uncheck All option.</td>
</tr>
<tr>
<td>
groupBy