Hi all,
I want to add to the jSon configuration in the styling section of the Grid DataType.
Basically, I need to add a checkbox option that will apply a div with a class of 'dim'
It will be displayed under the 'set background image' style in the settings for the editors
Yeah i think a checkbox would work better for sure. I had it working by adding a new checkboxlist.html to the prevalueeditors in the views but when checked, it adds a class to the background image instead of adding a div with a class like the spacing textbox.
Grid DataType - Add checkbox option to styling
Hi all, I want to add to the jSon configuration in the styling section of the Grid DataType. Basically, I need to add a checkbox option that will apply a div with a class of 'dim' It will be displayed under the 'set background image' style in the settings for the editors
I figured i would add something like:
Obviously this isnt correct but the label and description is displayed correctly. The checkbox doesnt render though. (see image)
Can anyone help me with this please?
Many thanks
Ok, i think i'll use the radiobuttonlist prevalueeditor, its probably easier.
However, I need it to behave like the spacing option where it adds a div with a class rather than adding a class to the background image
Anyone?
I was just going to add this question too.
I also need a checkbox list as I want the user to add multiple class names.
In your case the radio button would not work great because once it is active you will not be able to turn it off.
Does anybody know if there is a VIEW of checkboxlist??
Yeah i think a checkbox would work better for sure. I had it working by adding a new checkboxlist.html to the prevalueeditors in the views but when checked, it adds a class to the background image instead of adding a div with a class like the spacing textbox.
I am not sure why the built checkoxlist doesn't work to be honest, do you?
This outputs class:True; at the end of the div. It cant find any prevalues so i assume it needs a reference somewhere.
Once i can figure how to output the prevalues, the next step is to get it to add a new div with a class if the checkbox is checked, like this
It can't be too difficult, the 'add spacing' textbox does exactly that.
Im just reading this:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/60368-Grid-Settings-PreValueEditors
is working on a reply...