sections.timer.format.xhtml Maven / Gradle / Ivy
There are various ways to format the value of the Timer.
-
Default: simply display the seconds remaining
-
Percentage: display the reaming time as a percentage value
-
Human: use the Moment.JS Humanize function to print an human
readable interval
-
Custom: use a Moment.JS format. For example HH:mm:ss
-
Function: you can simply pass any JavaScript function to format the timer value.
${showcase:getFileContent('/sections/timer/example-format.xhtml')}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy