File

src/lib/pg-components/select/option.component.ts

Description

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>

Implements

OnDestroy OnInit

Metadata

Index

Properties
Inputs
Accessors

Constructor

constructor(_Select: MefDevSelectComponent)
Parameters :
Name Type Optional
_Select MefDevSelectComponent No

Inputs

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.

Properties

_label
Type : string
_value
Type : string
OptionTemplate
Type : any
Decorators :
@ContentChild('OptionTemplate')

Template for the content of the option.

Accessors

Value
getValue()
setValue(value: string)

The value of the option.

Parameters :
Name Type Optional
value string No
Returns : void
Label
getLabel()
setLabel(value: string)

The label of the option.

Parameters :
Name Type Optional
value string No
Returns : void
Disabled
getDisabled()
setDisabled(value: boolean)

Indicates whether the option is disabled.

Parameters :
Name Type Optional
value boolean No
Returns : void

results matching ""

    No results matching ""