Counter
Overview
The Counter is a component designed to measure time or duration, displayed in the HH format. It allows users to track events by either counting up (like a stopwatch) or counting down (like a countdown timer).
For example, you might use a Counter in a project management dashboard to count down the time remaining for a task deadline. As time progresses, the Counter updates in real-time, helping users stay aware of time-sensitive activities.
Attributes
Attributes are the options available for each component, allowing you to customize its appearance and functionality. They help you tailor the look and behavior of your components to fit your needs.
Basic:
Attribute Name | Description |
---|---|
Component Size |
For example, |
Counting Order | You can set the Counter to either increment or decrement:
|
Total Time | Here, users can set the time to start counting either in increasing or decreasing order. |
Warning Unit | Here, you can set the counting unit Seconds: Set seconds as the warning unit to trigger alerts for short time intervals. Minutes: Use minutes as the warning unit for medium-length warnings. Hours: Choose hours as the warning unit to generate alerts for longer durations. |
Default Variant | Change the color of the Counter below are the different variants: Default: Default color is Grey. Inverse: Change the badge color to Dark Grey. Lightest: Change the badge color to White. Success: Change the badge color to Green. Warning: Change the badge color to Orange. Error: Change the badge color to Red. |
Warning Variant | Change the color of the Counter below are the different variants Default: Default color is Grey. Inverse: Change the badge color to Dark Grey. Lightest: Change the badge color to White. Success: Change the badge color to Green. Warning: Change the badge color to Orange. Error: Change the badge color to Red. |
Base UI:
Attribute Name | Description |
---|---|
Padding Location | "Padding Location" typically refers to the configuration of spacing around elements |
Padding Size | "Padding Size" refers to the amount of space added inside an element, between the element's content and its border or edge. |
Margin Location | "Margin Location" refers to the spacing around the outside edge of an element |
Margin Size | "Margin Size" refers to the amount of space around the outside edges of an element, |
Style |
|
Classes |
|
UI State:
Attribute Name | Description |
Visibility Type | It determines whether a component is visible on the layout. It offers the following visibility types:
Reference: Conditional Visibility |
Events
Events are essentially the automation of invoking the component's actions.
Here, we have onload event, on start event, on stop event, on tick event, on warning event actions are available for this components.
Counter Event | Description |
---|---|
on Load | This event action is triggered when the counter component is loaded. |
on Start | This event action is triggered when the counter time starts. |
on Stop | This event action is triggered when the counter time stop. |
on Tick | This event action is triggered when the counter time is tick. |
on Warning | This event action is triggered when the counter time warning is shows. |
Below here is the onload event workflow action.