Issue #466Opened October 30, 2017by arthuralmeidap0 reactions

Disable button

Question

Hi,

I added a new button in Options Panel and now I'm trying to make it disable while a given criteria is not ok. For now, I tried to use the myButton.set('active', 1) but this is not I'm looking for.

I take a quick look on GrapesJS code and I didn't see an option to disable the button or make it "unclickable".

Is there any built-in feature for this? Or do I need to hack the grapes and add this support?

Answers (3)

artfOctober 31, 20170 reactions

Hi Arthur, unfortunately, there is no 'disable' feature, but it'd be cool to have

arthuralmeidapOctober 31, 20170 reactions

hi @artf , I will try to work on that, ok? I will starting adding a new disable attribute for the button. What you think?

arthuralmeidapNovember 1, 20170 reactions

Hey @artf , This is not related to this issue, but do you know when a next version will be released? There is some improvements on dev branch that would be nice to have them.

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.