projects/m2-core/src/lib/shared/ui-components/value/unit/units.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | units |
| template | |
Properties |
|
Methods |
Inputs |
Outputs |
Accessors |
constructor(cd: ChangeDetectorRef, measurementService: MeasurementService)
|
|||||||||
|
Parameters :
|
| appliedUnitInfo |
Type : literal type
|
| desirableUnitId |
Type : number
|
| natureId |
Type : number
|
| unitSelected |
Type : EventEmitter
|
| ngOnChanges | ||||||
ngOnChanges(changes: ComponentChanges<UnitsComponent>)
|
||||||
|
Parameters :
Returns :
void
|
| onUnitChanged |
onUnitChanged()
|
|
This callback is called only when unit is selected manually from UI
Returns :
void
|
| Optional _appliedUnitInfo |
Type : literal type
|
| Optional selectedUnit |
Type : MeasurementUnit
|
| Optional units |
Type : MeasurementUnit[]
|
| appliedUnitInfo | ||||||
setappliedUnitInfo(info: literal type)
|
||||||
|
Parameters :
Returns :
void
|