module Lucky::InputHelpers
Direct including types
Defined in:
lucky_avram/ext/lucky/input_helpers.crConstant Summary
- 
        EMPTY_BOOLEAN_ATTRIBUTES = 
[] of Symbol 
Instance Method Summary
- #checkbox(field : Avram::PermittedAttribute(T), unchecked_value : String, checked_value : String, **html_options) : Nil forall T
 - #checkbox(field : Avram::PermittedAttribute(Bool), attrs : Array(Symbol), **html_options) : Nil
 - #checkbox(field : Avram::PermittedAttribute(Bool), **html_options) : Nil
 - #checkbox(field : Avram::Attribute, **options)
 - 
        #color_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to color_input; this allows for Boolean attributes through
attrs. - 
        #color_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a color input field.
 - #color_input(field : Avram::Attribute, **options)
 - #date_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
 - #date_input(field : Avram::PermittedAttribute, **html_options) : Nil
 - #date_input(field : Avram::Attribute, **options)
 - #datetime_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
 - #datetime_input(field : Avram::PermittedAttribute, **html_options) : Nil
 - #datetime_input(field : Avram::Attribute, **options)
 - 
        #email_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to email_input; this allows for Boolean attributes through
attrs. - 
        #email_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a email input field.
 - #email_input(field : Avram::Attribute, **options)
 - 
        #file_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to file_input; this allows for Boolean attributes through
attrs. - 
        #file_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a file input field.
 - #file_input(field : Avram::Attribute, **options)
 - 
        #hidden_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to hidden_input; this allows for Boolean attributes through
attrs. - 
        #hidden_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a hidden input field.
 - #hidden_input(field : Avram::Attribute, **options)
 - 
        #number_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to number_input; this allows for Boolean attributes through
attrs. - 
        #number_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a number input field.
 - #number_input(field : Avram::Attribute, **options)
 - #password_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
 - #password_input(field : Avram::PermittedAttribute, **html_options) : Nil
 - #password_input(field : Avram::Attribute, **options)
 - 
        #radio(field : Avram::PermittedAttribute(String), checked_value : String, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to radio; this allows for Boolean attributes through
attrs. - 
        #radio(field : Avram::PermittedAttribute(String), checked_value : String, **html_options) : Nil
        
          
Returns a radio input field.
 - #radio(field : Avram::Attribute, **options)
 - 
        #range_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to range_input; this allows for Boolean attributes through
attrs. - 
        #range_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a range input field.
 - #range_input(field : Avram::Attribute, **options)
 - 
        #search_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to search_input; this allows for Boolean attributes through
attrs. - 
        #search_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a search input field.
 - #search_input(field : Avram::Attribute, **options)
 - #telephone_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
 - #telephone_input(field : Avram::PermittedAttribute, **html_options) : Nil
 - #telephone_input(field : Avram::Attribute, **options)
 - 
        #text_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to text_input; this allows for Boolean attributes through
attrs. - 
        #text_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a text input field.
 - #text_input(field : Avram::Attribute, **options)
 - 
        #textarea(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to textarea; this allows for Boolean attributes through
attrs. - 
        #textarea(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a textarea field.
 - #textarea(field : Avram::Attribute, **options)
 - #time_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
 - #time_input(field : Avram::PermittedAttribute, **html_options) : Nil
 - #time_input(field : Avram::Attribute, **options)
 - 
        #url_input(field : Avram::PermittedAttribute, attrs : Array(Symbol), **html_options) : Nil
        
          
Similar to url_input; this allows for Boolean attributes through
attrs. - 
        #url_input(field : Avram::PermittedAttribute, **html_options) : Nil
        
          
Returns a url input field.
 - #url_input(field : Avram::Attribute, **options)
 
Macro Summary
Instance Method Detail
Similar to color_input; this allows for Boolean attributes
through attrs.
color_input(attribute, attrs: [:required])
# => <input type="color" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a color input field.
color_input(attribute)
# => <input type="color" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to email_input; this allows for Boolean attributes
through attrs.
email_input(attribute, attrs: [:required])
# => <input type="email" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a email input field.
email_input(attribute)
# => <input type="email" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to file_input; this allows for Boolean attributes
through attrs.
file_input(attribute, attrs: [:required])
# => <input type="file" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a file input field.
file_input(attribute)
# => <input type="file" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to number_input; this allows for Boolean attributes
through attrs.
number_input(attribute, attrs: [:required])
# => <input type="number" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a number input field.
number_input(attribute)
# => <input type="number" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to radio; this allows for Boolean attributes through attrs.
radio(attribute, "checked_value", attrs: [:required])
# => <input type="radio" id="param_key_attribute_name_checked_value" name="param_key:attribute_name" value="checked_value" checked="true" required />
        Returns a radio input field.
radio(attribute, "checked_value")
# => <input type="radio" id="param_key_attribute_name_checked_value" name="param_key:attribute_name" value="checked_value" checked="true">
        Similar to range_input; this allows for Boolean attributes
through attrs.
range_input(attribute, attrs: [:required])
# => <input type="range" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a range input field.
range_input(attribute)
# => <input type="range" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to search_input; this allows for Boolean attributes
through attrs.
search_input(attribute, attrs: [:required])
# => <input type="search" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a search input field.
search_input(attribute)
# => <input type="search" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to text_input; this allows for Boolean attributes
through attrs.
text_input(attribute, attrs: [:required])
# => <input type="text" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a text input field.
text_input(attribute)
# => <input type="text" id="param_key_attribute_name" name="param_key:attribute_name" value="" />
        Similar to textarea; this allows for Boolean attributes
through attrs.
textarea(attribute, attrs: [:required])
# => <textarea id="param_key_attribute_name" name="param_key:attribute_name" required></textarea>
        Returns a textarea field.
textarea(attribute)
# => <textarea id="param_key_attribute_name" name="param_key:attribute_name"></textarea>
        Similar to url_input; this allows for Boolean attributes
through attrs.
url_input(attribute, attrs: [:required])
# => <input type="url" id="param_key_attribute_name" name="param_key:attribute_name" value="" required />
        Returns a url input field.
url_input(attribute)
# => <input type="url" id="param_key_attribute_name" name="param_key:attribute_name" value="" />