module ViewModel::FormTags

Direct including types

Defined in:

view_model/form_tags.cr

Constant Summary

INPUT_FIELDS = [:hidden, :text, :submit, :file, :password, :email, :checkbox, :radio, :time, :date, :number] of ::Symbol

Instance Method Summary

Instance Method Detail

def checkbox_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def checkbox_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def content_tag(io : String::Builder, tag, html_options = SHash.new) #

[View source]
def content_tag(tag, html_options : Hash = {} of String => String) #

[View source]
def content_tag(io : String::Builder, tag, html_options = SHash.new, &block) #

[View source]
def content_tag(tag, html_options : Hash = {} of String => String, &block) #

[View source]
def date_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def date_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def email_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def email_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def file_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def file_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def hidden_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def hidden_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def label_tag(io : String::Builder, for : Symbol | String? = nil, html_options = SHash.new, &block) #

[View source]
def label_tag(io : String::Builder, text, for : Symbol | String? = nil, html_options = SHash.new) #

[View source]
def label_tag(text, for : Symbol | String? = nil, html_options = {} of String => String) #

[View source]
def label_tag(for : Symbol | String? = nil, html_options = SHash.new, &block) #

[View source]
def number_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def number_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def password_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def password_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def radio_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def radio_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def select_tag(io : String::Builder, name : String | Symbol, options : Array(Array), value = nil, html_options = SHash.new) #

[View source]
def select_tag(name, options : Array(Array), value = nil, html_options = {} of String => String) #

[View source]
def submit_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def submit_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def text_area_tag(io : String::Builder, name, text = "", html_options = {} of String => String) #

[View source]
def text_area_tag(name, text = "", html_options = {} of String => String) #

[View source]
def text_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def text_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def time_tag(name : String | Symbol, value = nil, options = SHash.new) #

[View source]
def time_tag(io : String::Builder, name : String | Symbol, value = nil, options = SHash.new) #

[View source]