Funicular::Component class of PicoRuby
Type aliases
suspense_definition
{ loader: untyped, on_resolve: untyped, min_delay: Integer? }
Singleton methods
new
Funicular::Component.new(?Hash[Symbol, untyped] props) -> Component
styles
Funicular::Component.styles() { (StyleBuilder) -> void } -> void
styles_definitions
Funicular::Component.styles_definitions() -> Hash[Symbol, Hash[Symbol, untyped]]
suspense_definitions
Funicular::Component.suspense_definitions() -> Hash[Symbol, suspense_definition]
use_suspense
Funicular::Component.use_suspense(Symbol name, untyped loader, ?on_resolve: untyped, ?min_delay: Integer) -> void
Instance methods
a
instance.a(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
add_via
instance.add_via(String element_id, String from, String to, ?duration: Integer) ?{ () -> void } -> void
article
instance.article(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
aside
instance.aside(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
audio
instance.audio(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
bind_events
instance.bind_events(JS::Object dom_element, VDOM::VNode | VDOM::Text | nil vnode) -> void
br
instance.br(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
build_vdom
instance.build_vdom() -> (VDOM::VNode | VDOM::Text | nil)
button
instance.button(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
canvas
instance.canvas(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
component
instance.component(Class component_class, ?Hash[Symbol, untyped] props) ?{ () -> untyped } -> VDOM::Component
component_mounted
instance.component_mounted() -> void
component_raised
instance.component_raised(Exception e) -> void
component_unmounted
instance.component_unmounted() -> void
component_updated
instance.component_updated() -> void
component_will_mount
instance.component_will_mount() -> void
component_will_unmount
instance.component_will_unmount() -> void
component_will_update
instance.component_will_update() -> void
div
instance.div(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
footer
instance.footer(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
form
instance.form(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
form_for
instance.form_for(Symbol model_key, ?Hash[Symbol, untyped] options) { (FormBuilder) -> void } -> VDOM::Element
h1
instance.h1(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
h2
instance.h2(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
h3
instance.h3(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
h4
instance.h4(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
h5
instance.h5(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
h6
instance.h6(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
header
instance.header(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
hr
instance.hr(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
img
instance.img(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
initialize_state
instance.initialize_state() -> Hash[Symbol, untyped]
input
instance.input(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
label
instance.label(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
li
instance.li(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
link_to
instance.link_to(String path, ?method: Symbol, ?navigate: bool, **untyped options) { -> untyped } -> VDOM::Element
load_single_suspense
instance.load_single_suspense(Symbol name, ?suspense_definition? definition) -> void
load_suspense_data
instance.load_suspense_data() -> void
method_missing
instance.method_missing(Symbol method, *untyped args) -> untyped
mount
instance.mount(JS::Object container) -> void
nav
instance.nav(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
ol
instance.ol(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
option
instance.option(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
p
instance.p(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
patch
instance.patch(Hash[Symbol, untyped] new_state) -> void
reload_suspense
instance.reload_suspense(Symbol name) -> void
remove_via
instance.remove_via(String element_id, String from, String to, ?duration: Integer) ?{ () -> void } -> void
render
instance.render() -> (VDOM::VNode | String | Integer | Float | Array[untyped] | nil)
respond_to_missing?
instance.respond_to_missing?(Symbol method, ?bool include_private) -> bool
s
instance.s() -> StyleAccessor
section
instance.section(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
select
instance.select(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
span
instance.span(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
state
instance.state() -> StateAccessor
suspense
instance.suspense(fallback: ^() -> void, ?error: ^(untyped) -> void) { () -> void } -> void
suspense_error
instance.suspense_error(Symbol name) -> untyped
suspense_error?
instance.suspense_error?(Symbol name) -> bool
suspense_loading?
instance.suspense_loading?(*Symbol names) -> bool
table
instance.table(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
tbody
instance.tbody(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
td
instance.td(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
textarea
instance.textarea(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
th
instance.th(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
thead
instance.thead(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
tr
instance.tr(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
ul
instance.ul(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
unmount
instance.unmount() -> void
video
instance.video(?Hash[Symbol, untyped] props) ?{ -> untyped } -> VDOM::Element
Attr accessors
props (accessor)
instance.props -> Hash[Symbol, untyped]
vdom (accessor)
instance.vdom -> VDOM::VNode | VDOM::Text | nil
dom_element (accessor)
instance.dom_element -> JS::Object
mounted (accessor)
instance.mounted -> bool
refs (reader)
instance.refs -> Hash[Symbol, JS::Object]