Hi All,
Hopefully this is an easy request. Is there a way to split a list of radio buttons into two columns?
If you could show me the code to do this I would be very grateful!
Thanks,
Kent
Radio Buttons split into two columns
Re: Radio Buttons split into two columns
like this?... or do you have a special custom example?
- Attachments
-
- muestra.png (26.66 KiB) Viewed 4460 times
Luis Ramirez R.
Re: Radio Buttons split into two columns
Or if you're talking about the internal fields with selector buttons and how to sort them... this might help you...
https://forums.appgini.com/phpbb/viewto ... umn+layout
https://forums.appgini.com/phpbb/viewto ... umn+layout
Luis Ramirez R.
Re: Radio Buttons split into two columns
Hi,
you could also try to add some code like:
to the hooks/TABLENAME.php -> _header function.
you could also try to add some code like:
Code: Select all
case 'detailview':
$header='<%%HEADER%%><style>
.radio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr); # change this value for the amount of columns
gap: 10px;
}
input[type="radio"], input[type="checkbox"] {
margin-right: 3px;
}
</style>
<script>
$j(function() {
const $parent=$j(\'[name="checkboxes"]\').parent();
$parent.addClass(\'radio-grid\');
const $set = $parent.children();
const $elements=3;
for(var i=0, len = $set.length; i < len; i+=$elements) {
$set.slice(i, i+$elements).wrapAll(\'<div/>\');
}
});
</script>
';
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.