プルダウンメニュー用ウィジェトです。
AlOptions.new("名前", オプション)
オプション
AlOptions.new("opt1", :options=>{c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :value=>:c2) make_tag()出力 <select name="opt1" id="opt1"> <option id="opt1_c1" value="c1">CHOICE1</option> <option id="opt1_c2" value="c2" selected>CHOICE2</option> <option id="opt1_c3" value="c3">CHOICE3</option> </select>
AlOptions.new("opt1", :options=>{"":"----", c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :required=>true)
AlOptions.new("opt1", :options=>{c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :tag_attr=>{style:"width:180px"}) make_tag()出力 <select name="opt1" id="opt1" style="width:180px"> <option id="check1_c1" value="c1">CHOICE1</option> <option id="check1_c2" value="c2">CHOICE2</option> <option id="check1_c3" value="c3">CHOICE3</option> </select>