Members
(constant) maxGap :number
Maximum allowed gap in rem units.
- number
- Source
(constant) maxMargin :number
Maximum allowed margin in rem units.
- number
- Source
(constant) maxPadding :number
Maximum allowed padding in rem units.
- number
- Source
Methods
checkCssSupport() → {boolean}
Checks whether the current browser version sipports a CSS feature.
- Source
True if the browser supports the feature, otherwise returns false.
- Type:
- boolean
formatOptionsString(optionItemsString) → {Array.<object>}
Formats the options string into an array of option objects.
| Name | Type | Description |
|---|---|---|
optionItemsString | Any | The option items to be formatted.For example, |
- Source
The formatted options array.
- Type:
- Array.<object>
generateGapStyles() → {string}
Generates CSS styles for gap classes.
- Source
- The generated CSS styles for gap.
- Type:
- string
generateMarginStyles() → {string}
Generates CSS styles for margin classes.
- Source
- The generated CSS styles for margin.
- Type:
- string
generateOptionsString(optionItemsString, errorCallback, componentName) → {Array.<object>}
Formats the options string into an array of option objects.
| Name | Type | Description |
|---|---|---|
optionItemsString | Any | The option items to be formatted.For example, |
errorCallback | Func | The error handling function. |
componentName | String | The name of the target component. |
- Source
The formatted options array.
- Type:
- Array.<object>
generatePaddingStyles() → {string}
Generates CSS styles for padding classes.
- Source
- The generated CSS styles for padding.
- Type:
- string
getDecimalPlaces(num) → {number}
Counts the number of decimal places in a given number.
| Name | Type | Description |
|---|---|---|
num | number | The number to be evaluated. For example, |
- Source
The number of decimal places. Returns 0 if there are no decimal places.
- Type:
- number
// Returns 3
getDecimalPlaces(123.456);// Returns 6
getDecimalPlaces(123.456789);// Returns 0
getDecimalPlaces(123);initDynamicOptions(optionItems, optionsConfig, successCallback) → {Array.<object>}
dynamicOptions function to get options based on the configuration. If the mode is 'fixed', it formats the provided optionItems string. Otherwise, it retrieves the options from a variable path.
| Name | Type | Description |
|---|---|---|
optionItems | Any | The option items to be formatted.For example, |
optionsConfig | object | The configuration for dynamic options. |
successCallback | Func | The success handling function. |
- Source
The formatted options array.
- Type:
- Array.<object>
(async) monitorControllerState(value)
Monitors and triggers the controller state event.
| Name | Type | Description |
|---|---|---|
value | string | The controller state to set. |
- Source
(async) monitorExecutionState(value)
Monitors and triggers the execution state event.
| Name | Type | Description |
|---|---|---|
value | string | The execution state to set. |
- Source
(async) monitorOpMode(value)
Monitors and triggers the operation mode event.
| Name | Type | Description |
|---|---|---|
value | string | The operation mode to set. |
- Source