Funicular::FormBuilder class of PicoRuby
Singleton methods
new
Funicular::FormBuilder.new(Component component, Symbol model_key, ?Hash[Symbol, untyped] options) -> FormBuilder
Instance methods
checkbox
instance.checkbox(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
email_field
instance.email_field(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
file_field
instance.file_field(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
label
instance.label(Symbol field_name, ?String? text, ?Hash[Symbol, untyped] options) -> VDOM::Element
number_field
instance.number_field(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
password_field
instance.password_field(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
select
instance.select(Symbol field_name, Array[untyped] choices, ?Hash[Symbol, untyped] options) -> VDOM::Element
submit
instance.submit(?String label, ?Hash[Symbol, untyped] options) -> VDOM::Element
text_field
instance.text_field(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
textarea
instance.textarea(Symbol field_name, ?Hash[Symbol, untyped] options) -> VDOM::Element
Attr accessors
component (reader)
instance.component -> Component
model_key (reader)
instance.model_key -> Symbol
options (reader)
instance.options -> Hash[Symbol, untyped]