Skip to content

How to change format on click #1947

Answered by benni347
hellodhruvin asked this question in Q&A
Discussion options

You must be logged in to vote

For example for date and time you could have the following. The first shows the date in ISO-8601 and on click the time:

"clock": {
    "format": "{:%F}",
    "format-alt": "{:%H:%M}"
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hellodhruvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants