How we can show countdown traits
Question
Hi artf,
Please let us know how we get the countdown elements in edit mode means when we set the template html using editor.setComponents(templateHTML); then when we click on countdown element it displays the id and title fields not the Endzone and endText fields. I have tried a lot with setting model type as datetime-local but still not succeed.
Please let us know resolve this.
Answers (2)
editor.addComponents('<div data-gjs-type="countdown"></div>')
You can create a custom template by relying on data-js identifiers
editor.addComponents(`<div data-gjs-type="countdown">
<span data-js="countdown">
Days: <span data-js="countdown-day"></span>
Hours: <span data-js="countdown-hour"></span>
Minutes: <span data-js="countdown-minute"></span>
Seconds: <span data-js="countdown-second"></span>
</span>
<span data-js="countdown-endtext">
</span>
</div>`);
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #750
How we can set the time and time zone in count down
Hi @artf , Please let us know that how we can set the time and timezone in count down as it is important in countdown element.Also, we come...
Issue #740
How to remove class from html
Hi @artf, We are updating the <i> tag class but it adds new class to this but previous class is not remove.please let us know how to remove...
Issue #1090
How to remove toolbar icons
Hi artf, Please let me know how we can remove the toolbar icons like when user click on image element then I don't want delete icon or othe...
Issue #732
How to show edit icon on other elements
Hi @artf, Please let us know How to show edit icon on other elements.
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.