src/app/shared/components/slices-input/slices-input.component.ts
Component for entering data on block slices
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | ccf-slices-input |
| templateUrl | ./slices-input.component.html |
| styleUrl | ./slices-input.component.scss |
Methods |
Inputs |
Outputs |
| slicesConfig | |
Default value : DEFAULT_SLICES_CONFIG
|
|
|
Values of block dimensions to be emitted |
|
| slicesConfig | |
|
Values of block dimensions to be emitted |
|
| slicesConfigChange | |
Type : SlicesConfig
|
|
|
Emitter for slice data values |
|
| emptyStringIfNaN | ||||||||
emptyStringIfNaN(value: number)
|
||||||||
|
Get the original value if not NaN otherwise the empty string
Parameters :
Returns :
number | string
The original value if it is not NaN, '' otherwise |
| refreshSlices |
refreshSlices()
|
|
Refreshes all slice data values to empty values
Returns :
void
|
| updateSlicesData | ||||||||||||
updateSlicesData(event: KeyboardEvent, key: string)
|
||||||||||||
|
Limits the length of the input if needed and updates values when an input changes
Parameters :
Returns :
void
|