Disable button
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)
Hi Arthur, unfortunately, there is no 'disable' feature, but it'd be cool to have
hi @artf ,
I will try to work on that, ok?
I will starting adding a new disable attribute for the button. What you think?
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.
Issue #1816
Not allowing to upload same image on same the position after delete that image
Ajax call which is uploading image file in assests folder It's working fine to add an image from the local. But in another scenario, It's n...
Issue #1494
[Question] Tailwind classes
I'm looking to use Tailwind with GrapesJS, but this framework uses Utility-First CSS Classes to build quick layouts. The problem is that it...
Issue #563
Table <thead> and <tbody> tag gets Omitted
Hello, There is new issue with GrapesJS (maybe). I've created new component using bm.add() in which I've used a table element with <thead>...
Issue #1615
[Feature] support edit credentials request attribute on Remote Storage
The credentials options its forced to be 'include' on Remote Storage. https://github.com/artf/grapesjs/blob/master/src/storage_manager/mode...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Tutorial
Super Tooltip for GrapesJS — Version 0.1.5 Released 🎉
We’re excited to announce the v 0.1.5 update of Super Tooltip, our floating‑menu and tooltip plugin for GrapesJS
Tutorial
GrapesJS in 2026: The Complete Guide to the Open-Source Web Builder Framework
Master GrapesJS in 2026. Architecture, code examples, React integration, plugin development, Studio SDK, and how it compares to other projects
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.