A question about negative numbers, and Rich Text Editor height
I have two small questions I couldn't figure out.
When adding
numeric()
I get the two small arrows in the input field to increase or decrease the number. But when adding minValue(0)
users can still go negative with the arrows. It's not a big deal, validation will prevent negative numbers when submitting, but it would be nice if negative numbers can be avoided before that. I know it can be done with num="0"
in html, but I'm not sure how to do this with the form builder.
The other thing I couldn't find is setting the height for the Rich Text Editor, I would like to add a bit more spacing. Usually you can set rows="xx"
on a textarea, I'm looking for something like that. I'm probably just overlooking something, but I couldn't find it. 🙂8 Replies
Theres a
extraAttributes
method or something similar where you can add html attributes / classes.extraInputAttributes() is what you’re looking for..
Thanks guys, that was exactly what I was looking for, both issues are fixed now
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
can you hint as to why you would want this? maybe its something we can add to core
because i was under the impression that the textarea grows as you type
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ah ok
@Dan Harrin I ran into this question looking for a way to set the min height on the <p> element gets rendered when the Rich Editor on the form is not present. IE in the view. It has a weird looking height compared to the rest of the disabled form elements.