ONO::Lib::UI::Radio

Functions

buttons();

Radio buttons.

-B default color: blue
-c center
-d disable
-f select first is $select is empty
-D hard disable (almost invisible)
-G default color: green
-j add $JS to existing javascript on ALL buttons (you may add custom JS per button by using semicolons in @opts, which doesn't require -j)
-J use $JS instead of standard function - required for AJAX for example note that 'opt' will automatically be added to the function's arguments
-m mt2 - can be useful if vtop used in tables
-r align right
-R default color: red
-Y default color: yellow

ONO::Lib::UI::Radio->buttons( $id, $opts_ref, $selected, $switches, $JS );

onclick();

Radio button onclick logic. Can be used along with "buttons", but currently doesn't support lists with different button colours yet.

ONO::Lib::UI::Radio->onclick( $id, $opts_ref, $color );
returns: @RADIO

Sub-Modules

none

Dependencies

none