Issue #1576Opened November 13, 2018by crypto-dump1 reactions

Select element that has several blocks as one unit.

Question

I've created new block (like form or dialog, etc) that has several blocks such as search box, button, text fields, ... This element doesn't need to editable. I just want to select this whole block as one unit. Thanks.

Answers (3)

artfNovember 16, 20181 reactions

You might want to use propagate to inject indicated properties from component to its children

bm.add('your-block', {
      label: 'lol',
	  // ...
      content: `<div>
        <div data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-propagate='["selectable", "hoverable"]'>
          <div>Text 1</div>
          <div>Text 2</div>
          <div>Text 3</div>
        </div>
      </div>`,
    })
crypto-dumpNovember 16, 20180 reactions

Thanks. That's just what I want to do.

lock[bot]November 16, 20190 reactions

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.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.