forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathds-select.component.ts
More file actions
43 lines (36 loc) · 860 Bytes
/
ds-select.component.ts
File metadata and controls
43 lines (36 loc) · 860 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
32
33
34
35
36
37
38
39
40
41
42
43
import { Component, EventEmitter, Input, Output } from '@angular/core';
let nextDsSelectId = 0;
/**
* Component which represent a DSpace dropdown selector.
*/
@Component({
selector: 'ds-select',
templateUrl: './ds-select.component.html',
styleUrls: ['./ds-select.component.scss']
})
export class DsSelectComponent {
/**
* Unique identifier for the component instance.
*/
uniqueId = `ds-select-${nextDsSelectId++}`;
/**
* An optional label for the dropdown selector.
*/
@Input()
label: string;
/**
* Whether the dropdown selector is disabled.
*/
@Input()
disabled: boolean;
/**
* Emits an event when the dropdown selector is opened or closed.
*/
@Output()
toggled = new EventEmitter();
/**
* Emits an event when the dropdown selector or closed.
*/
@Output()
close = new EventEmitter();
}