[FEATURE REQUEST] Property slider view default unit
Question
Hey @artf ,
I think that the slider component would come handy from the UX perspective for the user interaction of some of the integer properties as well, like font-size / line-height, etc.
I would like to propose that the slider component is extended with a default unit property which would take in an string, but without the selection array under units property.
What do you think?
Thank you in advance!
Answers (3)
Yeah, sorry, I was too much busy with other stuff this week, hope to release this weekend 😬
It could be already possible with this kind of configuration
{
type: 'slider',
property: 'font-size',
units: [],
unit: 'em',
defaults: 14,
max: 40,
min: 1,
}
but unfortunately I notice that currently the slider itself does not update its pointer (due to a not numeric value). I'll fix that in the next release
Thank you @artf :) When is the plan to do the next release?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1391
[BUG] Property slider view default unit
Hey @artf , thanks for the enhancement! The implementation works as expected with some properties (font-size, border-radius, ...), but not...
Issue #1830
[Bug]: StyleManager properties without "property" defined cause an error on component selection
When using a StyleManager property where "property" is not defined, and defaults to '', I'm seeing an error on component selection: "TypeEr...
Issue #1615
[Feature] support edit credentials request attribute on Remote Storage
The credentials options its forced to be 'include' on Remote Storage. https://github.com/artf/grapesjs/blob/master/src/storage_manager/mode...
Issue #1626
[Bug] Wrong Placeholder marker when inserting in column flexbox component
Hello artf, I have a Problem with the Insertion Placeholder Marker. When you insert a component in a Flexbox-Parent it is always vertical (...
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.