Issue #1078💬 AnsweredOpened April 30, 2018by kuldeepcis1 reactions

Add custom date time picker for countdown

Quick answerby nojacko1

Source codes:https://github.com/artf/grapesjs-preset-webpagehttps://github.com/artf/grapesjs-component-countdown

Read full answer below ↓

Question

For countdown we would like to add our custom datetime picker not just the html one.We tried adding click event in its trait this way traits: [{ label: "Start", name: "startfrom", changeProp: 1, type: n.dateInputType, events:{ click:"handleClick", }, handleClick:function(e){alert('here')}, } but this doesn't work.Can you please help with it. can you please provide the unminified version of grapesjs-preset-webpage.min.js?

Answers (3)

artfMay 4, 2018

@kuldeepcis please take a look at how to create custom Traits

kuldeepcisMay 4, 2018

can you please provide the unminified version of grapesjs-preset-webpage.min.js?

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.