forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathds-select.component.html
More file actions
31 lines (26 loc) · 952 Bytes
/
ds-select.component.html
File metadata and controls
31 lines (26 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div>
<div ngbDropdown class="btn-group" (openChange)="toggled.emit($event)">
<div class="input-group-prepend" *ngIf="label">
<span id="dsSelectMenuLabel-{{ uniqueId }}" class="input-group-text">
{{ label | translate }}
</span>
</div>
<button [attr.aria-describedby]="label ? 'dsSelectMenuLabel-' + uniqueId : null"
id="dsSelectMenuButton-{{ uniqueId }}"
class="btn btn-outline-primary selection"
(blur)="close.emit($event)"
(click)="close.emit($event)"
[dsBtnDisabled]="disabled"
ngbDropdownToggle>
<ng-content select=".selection"></ng-content>
</button>
<div ngbDropdownMenu
class="dropdown-menu"
id="dsSelectDropdownMenu-{{ uniqueId }}"
[attr.aria-labelledby]="'dsSelectMenuButton-' + uniqueId">
<div>
<ng-content select=".menu"></ng-content>
</div>
</div>
</div>
</div>