1行テキスト入力ボックスです。
AlText.new("名前", オプション)
オプション
AlText.new("text1", :value=>"ABC")
make_tag()出力
<input type="text" name="text1" id="text1" value="ABC">
AlText.new("text1", :required=>true )
AlText.new( "text1", :filter=>AlForm::FILTER_STRIP )
AlText.new("text1", :tag_type=>"color")
make_tag()出力
<input type="color" name="text1" id="text1" value="">
AlText.new("text1", :tag_attr=>{size:50, maxlength:50})
make_tag()出力
<input type="text" name="text1" id="text1" value="" size="50" maxlength="50">
AlText.new("text1", :validator=>/\A[0-7]{3}\z/ ) # 8進3桁で入力されることを期待
AlText.new("text1", :min=>5, :max=>10) # 5文字以上10文字以下で入力