-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range support with a number? #25
Comments
I don't know. let me research it. another use does something like this. just don't know how |
SO, its not 'easy'.. so the thing you would add is an onChange handler "onChange": "(evt,node)=>{ all the js goes here... but we have access to jquery so its not too bad }" i didn't know, my son taught me, in the developers window, console tab, you can use jquery to access/change the html document so this other field needs an id so it turns out to be on the slider form element and to get the extra field, use the |
yeah, and I understand very little of that. |
so, under you slider element in the form
then you can add some styles to the webform.css for the class classname (or whatever we call it) |
Got it to work, but not as I would have liked. It includes the description in the field, and don't show a number to start, nor does it show the number until you let go of the slider... Released the schema without that for now. I'll play with it later when I've got more time to learn. |
ok.. the browser has limited support for cool things. what do you mean 'includes the description" you can do mouse clicks, keyup (not key down) or Change.. change is ONLY after you lose focus, 'commit' to the change.. keyup is good for words changing.. I use that in the instance labels clicks.. for when things happens.. I use that when u add an entry to the instance array, and then i click the lower section to add one too.. |
The description shows up in the box for the number, rather than under the field. Like I said, it's in my to-do pile... Anyone got climbing gear for that pile? 🤣 |
i know it doesn't make it any better, but I recreated on playground and see your point.. so I asked in jsonform.. they took it as an enhancement... (usually slow to post updates, this was same 24hours..) |
i understand the todo pile, mine has gone crazy lately too.. |
just fyi on your post to the jsonform issue. live-edit meams tracks changes as they happen, not at the end. if u have one of the multiple modules change the label and watch the title above the instance |
to test this with already installed module
on new module install , (temporary)
then in your range form element, add "htmlClass":"some_unique_classname" then in the webform.css you can also do ALL range-value with but that whacks every bodies if U find one that works.. I will add it to the webform.css, and all range-value will be like that |
this is still change on letup on the mouse, not live (with keyboard it would be live I think ) |
actually, it's live this way:
|
Now just gotta learn how to CSS it into what I want. :) |
remember that you can open the dev console and find the element and fiddle with its css right there |
I didn't actually know you could fiddle with CSS like that... Interesting. I've not really fiddled with CSS too much - as an example, The multimonth module was re-worked by someone to use CSS, I'm still learning there.. |
my go to |
the big picture then apply styles to them |
also topic on dev console |
AND I have added support for extensions, a data converter for objects that don't work with native JS definitions.. (compliments as an example) and module specific form css in the latest release |
I'd like to use ranges for my months fields, per the instruction on https://github.com/jsonform/jsonform/wiki#fields-range
I've got it set up like this:
from schema section -
from form section -
This results in a ranging slider, like I'd like, but no number to indicate what it means.
I'd rather have something like
(Manually edited, I'm no artist)
Is this something you can do, or do I need to modify my JSON?
The text was updated successfully, but these errors were encountered: