Issue #466💬 AnsweredOpened October 30, 2017by arthuralmeidap0 reactions

Disable button

Quick answerby artf

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

Read full answer below ↓

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, 2017

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

arthuralmeidapOctober 31, 2017

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, 2017

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

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.