add a font-size type prop
Question
I'm trying to create a font-size type of property that I would like to add to the dimensions sector. Doing this:
styleManager.addProperty('Dimension',{
name: 'Icon Size',
property: 'icon-size',
type: 'integer',
units: ['px', 'em', 'rem', '%']
});
Getting the value and all, but it's just showing an input box. Not one with the select option between the units. What am I doing wrong?
Answers (3)
Seems to work on my side: https://jsfiddle.net/ewyb2zcu/
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
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.
Issue #1245
How to set slider in margin-top property
Hi @artf, Can you please let me know how we can set the slider in margin-top property.I am setting with the below code but slider is moving...
Issue #1888
[Question] Add custom html inside canvas
Hi there, I'm using grapes to export a custom json with all the information i need, instead of HTML and CSS. For doing that I'm parsing the...
Issue #1458
Embeded Jquery events in the grapesjs editor not working as expected.
@artf , I tried to embed my template into the grapesjs editor. The issue am getting is the editor not working as expected with that templat...
Issue #1232
How to change the margin from px to rem
Hi @artf, Hope you are doing fine. I have changed the margin settings from "px" to "rem" in one of the element using below code: { property...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.