module ViewModel::FormTags
Direct including types
Defined in:
view_model/form_tags.crConstant Summary
-
INPUT_FIELDS =
[:hidden, :text, :submit, :file, :password, :email, :checkbox, :radio, :time, :date, :number] of ::Symbol
Instance Method Summary
- #checkbox_tag(name : String | Symbol, value = nil, options = SHash.new)
- #checkbox_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #content_tag(io : String::Builder, tag, html_options = SHash.new)
- #content_tag(tag, html_options : Hash = {} of String => String)
- #content_tag(io : String::Builder, tag, html_options = SHash.new, &block)
- #content_tag(tag, html_options : Hash = {} of String => String, &block)
- #date_tag(name : String | Symbol, value = nil, options = SHash.new)
- #date_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #email_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #email_tag(name : String | Symbol, value = nil, options = SHash.new)
- #file_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #file_tag(name : String | Symbol, value = nil, options = SHash.new)
- #hidden_tag(name : String | Symbol, value = nil, options = SHash.new)
- #hidden_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #label_tag(io : String::Builder, for : Symbol | String? = nil, html_options = SHash.new, &block)
- #label_tag(io : String::Builder, text, for : Symbol | String? = nil, html_options = SHash.new)
- #label_tag(text, for : Symbol | String? = nil, html_options = {} of String => String)
- #label_tag(for : Symbol | String? = nil, html_options = SHash.new, &block)
- #number_tag(name : String | Symbol, value = nil, options = SHash.new)
- #number_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #password_tag(name : String | Symbol, value = nil, options = SHash.new)
- #password_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #radio_tag(name : String | Symbol, value = nil, options = SHash.new)
- #radio_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #select_tag(io : String::Builder, name : String | Symbol, options : Array(Array), value = nil, html_options = SHash.new)
- #select_tag(name, options : Array(Array), value = nil, html_options = {} of String => String)
- #submit_tag(name : String | Symbol, value = nil, options = SHash.new)
- #submit_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #text_area_tag(io : String::Builder, name, text = "", html_options = {} of String => String)
- #text_area_tag(name, text = "", html_options = {} of String => String)
- #text_tag(name : String | Symbol, value = nil, options = SHash.new)
- #text_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
- #time_tag(name : String | Symbol, value = nil, options = SHash.new)
- #time_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new)
Instance Method Detail
def label_tag(io : String::Builder, for : Symbol | String? = nil, html_options = SHash.new, &block)
#
def select_tag(io : String::Builder, name : String | Symbol, options : Array(Array), value = nil, html_options = SHash.new)
#