abstract class FormBuilder::Themes::BaseTheme
- FormBuilder::Themes::BaseTheme
- Reference
- Object
Direct Known Subclasses
- FormBuilder::Themes::Bootstrap2Horizontal
- FormBuilder::Themes::Bootstrap2Inline
- FormBuilder::Themes::Bootstrap2Vertical
- FormBuilder::Themes::Bootstrap3Horizontal
- FormBuilder::Themes::Bootstrap3Inline
- FormBuilder::Themes::Bootstrap3Vertical
- FormBuilder::Themes::Bootstrap4Horizontal
- FormBuilder::Themes::Bootstrap4Inline
- FormBuilder::Themes::Bootstrap4Vertical
- FormBuilder::Themes::BulmaHorizontal
- FormBuilder::Themes::BulmaVertical
- FormBuilder::Themes::Default
- FormBuilder::Themes::Foundation
- FormBuilder::Themes::Materialize
- FormBuilder::Themes::Milligram
- FormBuilder::Themes::SemanticUIInline
- FormBuilder::Themes::SemanticUIVertical
Defined in:
form_builder/themes/base_theme.crClass Method Summary
Instance Method Summary
- #build_html_error(error : String, html_attrs : StringHash, field_type : String)
- #build_html_help_text(help_text : String, html_attrs : StringHash, field_type : String)
- #form_html_attributes(html_attrs : StringHash)
- #input_html_attributes(html_attrs : StringHash, field_type : String, has_errors? : Bool)
- #label_html_attributes(html_attrs : StringHash, field_type : String, has_errors? : Bool)
- #wrap_field(field_type : String, html_field : String, html_label : String | Nil, html_help_text : String | Nil, html_errors : Array(String) | Nil, wrapper_html_attributes : StringHash)
Class Method Detail
Instance Method Detail
abstract
def build_html_error(error : String, html_attrs : StringHash, field_type : String)
#
abstract
def build_html_help_text(help_text : String, html_attrs : StringHash, field_type : String)
#
abstract
def input_html_attributes(html_attrs : StringHash, field_type : String, has_errors? : Bool)
#
abstract
def label_html_attributes(html_attrs : StringHash, field_type : String, has_errors? : Bool)
#
abstract
def wrap_field(field_type : String, html_field : String, html_label : String | Nil, html_help_text : String | Nil, html_errors : Array(String) | Nil, wrapper_html_attributes : StringHash)
#