Open Jimmi08 opened 2 years ago
Why are you making this feature request?
Change hardcoded size from small to parameter from admin UI
_function radioswitch
from
if(deftrue('e_ADMIN_AREA')) { $options['switch'] = 'small'; }
to (just working stuff, your way of coding is preferred)
if(deftrue('e_ADMIN_AREA')) { $options['switch'] = ($options['switch']) ? $options['switch'] : 'small'; }
Working example:
'sensitivity' => array ( 'title' => LAN_GC_COOKIE_SENSITIVITY, 'type' => 'boolean', 'data' => 'int', 'width' => 'auto', 'batch' => 'value', 'inline' => 'true', 'help' => '', 'readParms' => array (), 'help' => LAN_GC_COOKIE_SENSITIVITY_HELP , 'writeParms' => array ('enabled'=>'necessary', 'disabled'=>'non-necessary', 'switch'=> 'normal'), 'class' => 'left', 'thclass' => 'left',),
Maybe the "size" parameter would be enough but values for the switch are different than for text field
More info: https://stackoverflow.com/questions/24865579/bootstrap-switch-how-to-show-large-label-text/24867926#24867926
Thanks
Quick fix:
$code = ' .bootstrap-switch-handle-on {white-space: nowrap!important;} '; e107::css('inline', $code);
Solved for me.
Motivation
Why are you making this feature request?
Proposed Solution
Change hardcoded size from small to parameter from admin UI
_function radioswitch
from
to (just working stuff, your way of coding is preferred)
Alternatives
Working example:
Additional Context
Maybe the "size" parameter would be enough but values for the switch are different than for text field
More info: https://stackoverflow.com/questions/24865579/bootstrap-switch-how-to-show-large-label-text/24867926#24867926
Thanks