{"action":"created","issue":{"url":"https://api.github.com/repos/artf/grapesjs/issues/1118","repository_url":"https://api.github.com/repos/artf/grapesjs","labels_url":"https://api.github.com/repos/artf/grapesjs/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/artf/grapesjs/issues/1118/comments","events_url":"https://api.github.com/repos/artf/grapesjs/issues/1118/events","html_url":"https://github.com/artf/grapesjs/issues/1118","id":323834107,"number":1118,"title":"[Question] Generate dynamic identifier in Block","user":{"login":"cgatian","id":1752170,"avatar_url":"https://avatars0.githubusercontent.com/u/1752170?v=4","gravatar_id":"","url":"https://api.github.com/users/cgatian","html_url":"https://github.com/cgatian","followers_url":"https://api.github.com/users/cgatian/followers","following_url":"https://api.github.com/users/cgatian/following{/other_user}","gists_url":"https://api.github.com/users/cgatian/gists{/gist_id}","starred_url":"https://api.github.com/users/cgatian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgatian/subscriptions","organizations_url":"https://api.github.com/users/cgatian/orgs","repos_url":"https://api.github.com/users/cgatian/repos","events_url":"https://api.github.com/users/cgatian/events{/privacy}","received_events_url":"https://api.github.com/users/cgatian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T00:41:15Z","updated_at":"2018-05-17T22:52:14Z","closed_at":"2018-05-17T22:52:14Z","author_association":"NONE","body":"Im looking to create a block that when dropped will generate two components and these components would share some unique identifier between each other. If I dropped a second block to the canvas a second identifier would be used.\r\n\r\n```\r\n    blockManager.add('combined', {\r\n      label: 'combined',\r\n      category: 'Workflow',\r\n      content:  `<gg-list bind-id=\"SOMEID\"></gg-list><gg-label bind-id=\"SOMEID\"></gg-label>`,\r\n    });\r\n```\r\n\r\nI believe you could do this by creating your own component, but then you loose the ability resize/edit each individual component within he components `content` property.\r\n\r\nAny help would be appreciated. Thank you."},"comment":{"url":"https://api.github.com/repos/artf/grapesjs/issues/comments/390038222","html_url":"https://github.com/artf/grapesjs/issues/1118#issuecomment-390038222","issue_url":"https://api.github.com/repos/artf/grapesjs/issues/1118","id":390038222,"user":{"login":"artf","id":11614725,"avatar_url":"https://avatars0.githubusercontent.com/u/11614725?v=4","gravatar_id":"","url":"https://api.github.com/users/artf","html_url":"https://github.com/artf","followers_url":"https://api.github.com/users/artf/followers","following_url":"https://api.github.com/users/artf/following{/other_user}","gists_url":"https://api.github.com/users/artf/gists{/gist_id}","starred_url":"https://api.github.com/users/artf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artf/subscriptions","organizations_url":"https://api.github.com/users/artf/orgs","repos_url":"https://api.github.com/users/artf/repos","events_url":"https://api.github.com/users/artf/events{/privacy}","received_events_url":"https://api.github.com/users/artf/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T22:52:14Z","updated_at":"2018-05-17T22:52:14Z","author_association":"OWNER","body":"You can make use of this event\r\n```js\r\neditor.on('canvas:drop', (dataTransfer, component) => {\r\n\tif (component.getEl().tagName === 'GG-LIST'){\r\n\t\t...\r\n\t}\r\n});\r\n```"}}
{"actor":{"display_login":"artf"}}