Issue #1841Opened February 28, 2019by minuwan3 reactions

Components name

Question

I have two questions.

  1. Is there any way to change the built-in components name? I wanted to change the name "Box" to "Div". so the same name appears on select and on the layers/navigator panel. In simple term, if I drag and dropped a div, I need it to be named Div.

  2. Any way to add an icon in front of the text of each item type in the layers panel? I mean a box for Div, A list icon for ULs etc...

Answers (3)

NicoEnglerFebruary 28, 20192 reactions
  1. You can use data-gjs-custom-name on your components html. <h1 data-gjs-custom-name="Your Name" ...>

  2. You can use data-gjs-icon on your components html. <h1 data-gjs-icon='<i class="fa fa-arrows"></i>' ...>

Please change your title to something more meaningful so others can find already solved problems better :)

EDIT: you can use data-gjs-name instead of data-gjs-custom-name

minuwanFebruary 28, 20190 reactions

@NicoEngler Any other way to set default custom names for each type? If someone drag and drop content from outside, I want to display those div's names as "Divs" as well. :)

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.