Comments (4)
If that seems to be the easiest option, I was looking at the api and indeed there is no method to do it.
I will take a look to make the filter and I will tell you if I could solve it through the filters
from grapesjs-template-manager.
I don't think you can disable blocks, maybe you can filter out the blocks?
from grapesjs-template-manager.
It can also be an option, I will give an example to understand what I want to achieve.
There are some blocks that are responsible for building the payment form at the time of completing a purchase for having added products to the cart.
In theory, the blocks that are part of the payment process should only exist when selecting the checkout page.
So we could:
a. Hide blocks visually
b. Disable blocks when changing a page using the BlockManager
c. Change the list of blocks every time a page is changed.
from grapesjs-template-manager.
I don't think you can disable the blocks from the API, the only option I can think of would be to filter out those blocks each time you switch to such a page so that they don't appear in the block manager.
from grapesjs-template-manager.
Related Issues (20)
- Grapesjs adds "-2" to ids in the html. HOT 1
- Open projects and templates not working HOT 1
- add additional values ββon page edit HOT 1
- loading assets HOT 1
- TypeError from file src/index.js HOT 1
- Is there any method to get html and css in the content HOT 1
- Saving generated thumbnail fail HOT 3
- Append to div HOT 1
- Display current page name HOT 1
- Pages within site not saved HOT 1
- Request: Custom view options for pages and/or template view HOT 1
- grapejs storage
- grapejsstorage
- Add save(update) button in panels HOT 1
- Storage with rest api HOT 1
- crypto.randomUUID is not a function error
- dist/grapesjs-project-manager.min.css does not found HOT 3
- Storage Re-names element IDs HOT 2
- Can't rename open project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grapesjs-template-manager.