Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CountdownController): New configuration value padZeros to control whether hours, minutes and seconds are output as zero-padded or not. Also fixed removeUnused behaviour. #351

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

Sub-Xaero
Copy link
Owner

@Sub-Xaero Sub-Xaero commented Apr 17, 2024

The default is "true" so if you are expecting hours minutes and seconds to be unpadded, you'll need to add data-countdown-pad-zeros="false" to your controller elements.

@Sub-Xaero Sub-Xaero self-assigned this Apr 17, 2024
@Sub-Xaero Sub-Xaero marked this pull request as ready for review April 17, 2024 15:38
…rol whether hours, minutes and seconds are output as zero-padded or not. Also fixed `removeUnused` behaviour.

Closes #345
@Sub-Xaero Sub-Xaero force-pushed the feat/countdown-controller-padding branch from ccc0417 to 22c8eb0 Compare April 17, 2024 15:38
@Sub-Xaero Sub-Xaero linked an issue Apr 17, 2024 that may be closed by this pull request
@Sub-Xaero Sub-Xaero merged commit 9a4ad0b into main Apr 17, 2024
1 check passed
@Sub-Xaero Sub-Xaero deleted the feat/countdown-controller-padding branch April 17, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CountdownController to show readable time
1 participant