Git Product home page Git Product logo

Comments (4)

vizardkill avatar vizardkill commented on May 31, 2024 1

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.

Ju99ernaut avatar Ju99ernaut commented on May 31, 2024

I don't think you can disable blocks, maybe you can filter out the blocks?

from grapesjs-template-manager.

vizardkill avatar vizardkill commented on May 31, 2024

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.

Ju99ernaut avatar Ju99ernaut commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.