grapesjs
grapesjs copied to clipboard
Is there a way to find the number of components
I want to remove the component start from the second,so i need to take the traversal. domc.getComponents() is getting everything.i just want to get something specific such as all the buttons
You can use find() method at any component, so to get all button components of the canvas, you would do this
domc.getWrapper().find('button.some-class'); // returns an array of components
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.