grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

add custom date time picker for countdown

Open kuldeepcis opened this issue 8 years ago • 4 comments

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?

kuldeepcis avatar Apr 30 '18 13:04 kuldeepcis

Source codes:

  • https://github.com/artf/grapesjs-preset-webpage
  • https://github.com/artf/grapesjs-component-countdown

nojacko avatar Apr 30 '18 16:04 nojacko

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

artf avatar May 03 '18 21:05 artf

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

kuldeepcis avatar May 04 '18 10:05 kuldeepcis

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.

lock[bot] avatar Sep 17 '19 17:09 lock[bot]