#696December 31, 2017by NHKK2 answers
Hello everyone, I'm new to all of this and I've been going through the documentation but I still dont understand how to bind click event. I have 2 files the first file is and second file is Does anyone have an example of binding?
artf
Hi @NHKK if your goal was to extend input component with some binded event you were almost there (you just need to use comps.addType)
lock[bot]
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.
#581November 28, 2017by ppisecky3 answers
The Editor API wiki lists a set of component-related events that can be listened to (e.g. component:add, component:update). There is however no mention of what sort of event objects the listener receives and how they are structured (what properties do they have and what values can they contain.) When a component gets...
ppisecky
@artf hey thanks for your answer. I was however looking for a more general example of determining if changes happened and what they were - for example something like this: We need to track changes to components in a project so we need some...
artf
Thanks @ppisecky for pointing this out, I updated the source, but basiclly any component-related event just receives the triggered model. About your font-size case, you can set up this listener
lock[bot]
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.
#553November 21, 2017by baxxos3 answers
Hello, I would like to ask if there's any existing support or API for adding new components to an existing component list (e. g. after fetching or generating them dynamically). I'm talking about something like this: I've studied the documentation and the closest I got is the function. Unfortunately, this function spec...
ryandeba
Unfortunately I am not aware of a simple way to get a specific component object without recursively iterating through them to find the one you want, but that sounds like a great idea! You might be able to do something like this to get all...
baxxos
Thanks for your replies, I think my question has been answered and there's not much else to add. I'm closing this now, however the find() method would be a welcome addition to this awesome framework.
ryandeba
Hi @baxxos, Are you trying to do something like this: https://jsfiddle.net/ztqsugaw/3/?
#386October 5, 2017by RuudH3 answers
Hi Artur, First of all grapesjs is awsome! At the moment i am trying to puzzle together how to create a pannel with a button that opens a new view, like the blocks and layermanager buttons do. I want to render my own set of items in that new view. I am looking at the code you use to open those views but that uses the...
daniel-farina
A good practice to get familiar with GrapeJS would be to attempt to duplicate the blocks manager and create your own. You can accomplish that by editing the files below. A good example would be to copy the src/blockmanagerand call it src/s...
Moikapy
Hey, was looking into doing something similar and found this here. Was wondering if there is any documentation further explaining the process of creating new views.
artf
Hi @RuudH thanks for the suggestion, I hope to publish soon something more about this argument. For now, I can only suggest you check commands used for those panels (eg. OpenBlocks)
#333September 24, 2017by cmcintoshNo answers
It would be good to add a couple of pages in regards to what the accepted Block attributes and other parameters that can be used as a part of the documentation. Additionally, documentation regarding the proper method of including external styles/js libraries would be good as its own wiki page as I have seen multiple q...