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
Fieldset along with the Select all checkbox. #450
Comments
well, its not in the schema.. its in the form.
then the handleChange function might look like this (untested) function handlechange(evt, node){
var all_checked=$(evt.target).checked // get 'all' checkbox state.. should be true/false
// use jquery to get all the checkboxes under the 'foo' class
// loop thru them
$('.foo .checkbox').forEach((box)=>{
box.checked = all_checked
})
} |
Hello, thank you for the input. Could you please tell me where to add the handleChange function? I'm using Angular with TypeScript. |
Hey @sdetweil , Using your code and the generated form appears as shown in the screenshot below. However, I would like the 'select all' checkbox to be positioned in front of the options to select all fields. By the way, I am using ajsf in my project. Are there any limitations of the ajsf library that prevent me from adding this kind of UI, like a fieldset along with a 'select all' checkbox? |
I don't know what you mean asjf. I see there is a different library for asjf angular I do not know on the positioning. my literal coding places the checkbook in front as far as restrictions.. this is just a lib that converts to HTML elements under the covers.. so whatever you can do in html, |
I see you posted to the asjf github repo too |
closing, wrong project reference |
I would like to implement the functionality shown in the screenshot below, which includes a fieldset along with a 'Select All' checkbox. Is this possible? If so, could you provide me with the schema for it?
The text was updated successfully, but these errors were encountered: