Class: Funicular::Component
- Inherits:
-
Object
- Object
- Funicular::Component
show all
- Defined in:
- sig/component.rbs
Defined Under Namespace
Classes: ResourceAccessor, StateAccessor
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Component.
31
|
# File 'sig/component.rbs', line 31
def initialize: (?Hash[Symbol, untyped] props) -> void
|
Instance Attribute Details
#children ⇒ Array[VDOM::child_t]
Returns the value of attribute children.
25
26
27
|
# File 'sig/component.rbs', line 25
def children
@children
end
|
#current_children ⇒ Array[VDOM::child_t]?
Returns the value of attribute current_children.
26
27
28
|
# File 'sig/component.rbs', line 26
def current_children
@current_children
end
|
#dom_element ⇒ JS::Element
Returns the value of attribute dom_element.
22
23
24
|
# File 'sig/component.rbs', line 22
def dom_element
@dom_element
end
|
#mounted ⇒ Boolean
Returns the value of attribute mounted.
23
24
25
|
# File 'sig/component.rbs', line 23
def mounted
@mounted
end
|
#props ⇒ Hash[Symbol, untyped]
Returns the value of attribute props.
20
21
22
|
# File 'sig/component.rbs', line 20
def props
@props
end
|
#refs ⇒ Hash[Symbol, JS::Element]
Returns the value of attribute refs.
27
28
29
|
# File 'sig/component.rbs', line 27
def refs
@refs
end
|
Returns the value of attribute runtime.
24
25
26
|
# File 'sig/component.rbs', line 24
def runtime
@runtime
end
|
Returns the value of attribute vdom.
21
22
23
|
# File 'sig/component.rbs', line 21
def vdom
@vdom
end
|
Class Method Details
.styles {|arg0| ... } ⇒ void
This method returns an undefined value.
32
|
# File 'sig/component.rbs', line 32
def self.styles: () { (StyleBuilder) -> void } -> void
|
.styles_definitions ⇒ Hash[Symbol, Hash[Symbol, untyped]]
33
|
# File 'sig/component.rbs', line 33
def self.styles_definitions: () -> Hash[Symbol, Hash[Symbol, untyped]]
|
.suspense_definitions ⇒ Hash[Symbol, suspense_definition]
35
|
# File 'sig/component.rbs', line 35
def self.suspense_definitions: () -> Hash[Symbol, suspense_definition]
|
.use_suspense ⇒ void
This method returns an undefined value.
34
|
# File 'sig/component.rbs', line 34
def self.use_suspense: (Symbol name, untyped loader, ?on_resolve: untyped, ?min_delay: Integer) -> void
|
Instance Method Details
#add_child_from_view ⇒ void
This method returns an undefined value.
61
|
# File 'sig/component.rbs', line 61
def add_child_from_view: (untyped child) -> void
|
#add_via ⇒ void
This method returns an undefined value.
75
|
# File 'sig/component.rbs', line 75
def add_via: (String element_id, String from, String to, ?duration: Integer) ?{ () -> void } -> void
|
#bind_events ⇒ void
This method returns an undefined value.
58
|
# File 'sig/component.rbs', line 58
def bind_events: (JS::Element dom_element, VDOM::VNode | VDOM::Text | nil vnode) -> void
|
64
|
# File 'sig/component.rbs', line 64
def build_button_to: (ViewContext h, String path, ?method: Symbol, **untyped options) { (ViewContext) -> untyped } -> VDOM::Element
|
62
|
# File 'sig/component.rbs', line 62
def build_form_for: (ViewContext h, Symbol model_key, ?Hash[Symbol, untyped] options) { (FormBuilder) -> void } -> VDOM::Element
|
#build_link_to {|arg0| ... } ⇒ VDOM::Element
63
|
# File 'sig/component.rbs', line 63
def build_link_to: (ViewContext h, String path, **untyped options) { (ViewContext) -> untyped } -> VDOM::Element
|
56
|
# File 'sig/component.rbs', line 56
def build_vdom: () -> (VDOM::VNode | VDOM::Text | nil)
|
#collect_refs ⇒ Hash[Symbol, JS::Element]
59
|
# File 'sig/component.rbs', line 59
def collect_refs: (JS::Element dom_element, VDOM::VNode | VDOM::Text | nil vnode, ?Hash[Symbol, JS::Element] refs_map) -> Hash[Symbol, JS::Element]
|
#component_mounted ⇒ void
This method returns an undefined value.
67
|
# File 'sig/component.rbs', line 67
def component_mounted: () -> void
|
#component_raised ⇒ void
This method returns an undefined value.
72
|
# File 'sig/component.rbs', line 72
def component_raised: (Exception e) -> void
|
#component_unmounted ⇒ void
This method returns an undefined value.
71
|
# File 'sig/component.rbs', line 71
def component_unmounted: () -> void
|
#component_updated ⇒ void
This method returns an undefined value.
69
|
# File 'sig/component.rbs', line 69
def component_updated: () -> void
|
#component_will_mount ⇒ void
This method returns an undefined value.
66
|
# File 'sig/component.rbs', line 66
def component_will_mount: () -> void
|
#component_will_unmount ⇒ void
This method returns an undefined value.
70
|
# File 'sig/component.rbs', line 70
def component_will_unmount: () -> void
|
#component_will_update ⇒ void
This method returns an undefined value.
68
|
# File 'sig/component.rbs', line 68
def component_will_update: () -> void
|
#hydrate ⇒ void
This method returns an undefined value.
53
|
# File 'sig/component.rbs', line 53
def hydrate: (JS::Element dom_element) -> void
|
#initialize_state ⇒ Hash[Symbol, untyped]
40
|
# File 'sig/component.rbs', line 40
def initialize_state: () -> Hash[Symbol, untyped]
|
#load_single_suspense ⇒ void
This method returns an undefined value.
44
|
# File 'sig/component.rbs', line 44
def load_single_suspense: (Symbol name, ?suspense_definition? definition) -> void
|
#load_suspense_data ⇒ void
This method returns an undefined value.
43
|
# File 'sig/component.rbs', line 43
def load_suspense_data: () -> void
|
#mount ⇒ void
This method returns an undefined value.
52
|
# File 'sig/component.rbs', line 52
def mount: (JS::Element container) -> void
|
#normalize_vnode_for_view ⇒ VDOM::Element, ...
60
|
# File 'sig/component.rbs', line 60
def normalize_vnode_for_view: (untyped value) -> (VDOM::Element | VDOM::Text | VDOM::Component | nil)
|
#patch ⇒ void
This method returns an undefined value.
51
|
# File 'sig/component.rbs', line 51
def patch: (Hash[Symbol, untyped] new_state) -> void
|
#reload_suspense ⇒ void
This method returns an undefined value.
45
|
# File 'sig/component.rbs', line 45
def reload_suspense: (Symbol name) -> void
|
#remove_via ⇒ void
This method returns an undefined value.
74
|
# File 'sig/component.rbs', line 74
def remove_via: (String element_id, String from, String to, ?duration: Integer) ?{ () -> void } -> void
|
55
|
# File 'sig/component.rbs', line 55
def render: (ViewContext h) -> (VDOM::VNode | String | Integer | Float | Array[untyped] | nil)
|
#render_suspense {|arg0, arg1| ... } ⇒ Object
49
|
# File 'sig/component.rbs', line 49
def render_suspense: (ViewContext h, Symbol name, fallback: untyped, ?error: untyped) { (ViewContext, ResourceAccessor) -> untyped } -> untyped
|
38
|
# File 'sig/component.rbs', line 38
def resources: () -> ResourceAccessor
|
#seed_state ⇒ self
41
|
# File 'sig/component.rbs', line 41
def seed_state: (Hash[untyped, untyped]? state_hash) -> self
|
37
|
# File 'sig/component.rbs', line 37
def state: () -> StateAccessor
|
39
|
# File 'sig/component.rbs', line 39
def styles: () -> StyleAccessor
|
#suspense_error ⇒ Object
48
|
# File 'sig/component.rbs', line 48
def suspense_error: (Symbol name) -> untyped
|
#suspense_error? ⇒ Boolean
47
|
# File 'sig/component.rbs', line 47
def suspense_error?: (Symbol name) -> bool
|
#suspense_loading? ⇒ Boolean
46
|
# File 'sig/component.rbs', line 46
def suspense_loading?: (*Symbol names) -> bool
|
#unmount ⇒ void
This method returns an undefined value.
54
|
# File 'sig/component.rbs', line 54
def unmount: () -> void
|