src/lib/pg-components/select/option.component.ts
Component for representing an option in a dropdown list.
<mefdev-select>
<mefdev-option Value="1" Label="Option 1"></mefdev-option>
<mefdev-option Value="2" Label="Option 2"></mefdev-option>
<mefdev-option Value="3" Label="Option 3"></mefdev-option>
</mefdev-select>
OnDestroy
OnInit
encapsulation | ViewEncapsulation.None |
selector | mefdev-option |
templateUrl | ./option.component.html |
Properties |
Inputs |
Accessors |
constructor(_Select: MefDevSelectComponent)
|
||||||
Parameters :
|
Disabled |
Type : boolean
|
Indicates whether the option is disabled. |
Label |
Type : string
|
The label of the option. |
Value |
Type : string
|
The value of the option. |
_label |
Type : string
|
_value |
Type : string
|
OptionTemplate |
Type : any
|
Decorators :
@ContentChild('OptionTemplate')
|
Template for the content of the option. |
Value | ||||||
getValue()
|
||||||
setValue(value: string)
|
||||||
The value of the option.
Parameters :
Returns :
void
|
Label | ||||||
getLabel()
|
||||||
setLabel(value: string)
|
||||||
The label of the option.
Parameters :
Returns :
void
|
Disabled | ||||||
getDisabled()
|
||||||
setDisabled(value: boolean)
|
||||||
Indicates whether the option is disabled.
Parameters :
Returns :
void
|