====== AlTextArea テキストエリア ====== 複数行テキスト入力ボックスです。 ===== コンストラクタ ===== AlTextArea.new("名前", オプション) オプション * label - ラベル * value - 初期値 * rows - 行数 * cols - 列数 * required - 必須入力フラグ * filter - 入力フィルタ * tag_attr - htmlタグ生成時の追加アトリビュート * validator - バリデータ * min - 最小長さ * max - 最大長さ ===== 使用例 ===== == 初期値指定 == AlTextArea.new("text1", :value=>"ABC") make_tag()出力 == 行、列数指定 == AlTextArea.new("text1", :rows=>5, :cols=>20) make_tag()出力 == 必須入力フラグ == AlTextArea.new("text1", :required=>true ) == 入力フィルタ == AlTextArea.new( "text1", :filter=>AlForm::FILTER_STRIP ) == htmlタグ生成時の追加アトリビュート == AlTextArea.new("text1", :tag_attr=>{wrap:"off"}) make_tag()出力 == バリデータ == AlTextArea.new("text1", :validator=>/\A[\w\s]+\z/ ) # 英数字のみの入力を期待 == 最小最大 == AlTextArea.new("text1", :min=>5, :max=>10) # 5文字以上10文字以下で入力