Issue #1061Opened April 24, 2018by Deepak8130 reactions

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)

artfApril 25, 20180 reactions

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>`);
lock[bot]September 17, 20190 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.