tiye/respo/node does not have a README file
pub(open) trait RespoEffect : ToJson {
build_effect(Self) -> RespoEffectBox = _
make_handler(Self) -> ((RespoEffectType, Node) -> Unit) = _
run(Self, RespoEffectType, Node) -> Unit = _
mounted(Self, Node) -> Unit = _
before_update(Self, Node) -> Unit = _
updated(Self, Node) -> Unit = _
before_unmount(Self, Node) -> Unit = _
}pub(all) suberror RespoCommonError String
impl Show for RespoCommonErrorpub(all) enum AnchorElementTarget {
Blank
Parent
Self
Top
}type ChildDomOp[T]impl Show for DispatchFn[T]fn[T : RespoAction, S] DispatchFn::empty_state(self : DispatchFn[T], cursor : RespoCursor[S]) -> Unit raise RespoCommonError#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn[T] DispatchFn::inner(self : DispatchFn[T]) -> ((T) -> Unit raise RespoCommonError)#deprecated("use `empty_state` instead")
fn[T : RespoAction] DispatchFn::run_empty_state(self : DispatchFn[T], cursor : Array[String]) -> Unit raise RespoCommonErrorfn[T : RespoAction, S : ToJson] DispatchFn::set_state(self : DispatchFn[T], cursor : RespoCursor[S], state : S) -> Unit raise RespoCommonErrortype DomChange[T]pub(all) struct RespoComponent[T] {
name : String
effects : Array[RespoEffectBox]
tree : RespoNode[T]
}impl Eq for RespoComponent[T]fn[T] RespoComponent::named(name : String, tree : RespoNode[T], effects? : Array[&RespoEffect]) -> RespoComponent[T]pub(all) enum RespoEffectType {
Mounted
BeforeUpdate
Updated
BeforeUnmount
}impl Eq for RespoEffectTypeimpl Show for RespoEffectTypepub(all) struct RespoElement[T] {
name : String
attrs : Map[String, String]
event : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError]
style : RespoStyle
children : Array[(RespoIndexKey, RespoNode[T])]
}impl Eq for RespoElement[T]impl Show for RespoElement[T]pub(all) enum RespoEvent {
Click(Float, Float, MouseEvent)
Keyboard(String, UInt, Bool, Bool, Bool, Bool, Bool, KeyboardEvent)
Input(String, InputEvent)
Focus(FocusEvent)
Blur(BlurEvent)
Drag(Float, Float, DataTransfer, DragEvent)
}impl Show for RespoEventpub(all) struct RespoEventMark {
coord : T[RespoCoord]
name : RespoEventType
event_info : RespoEvent
}pub(all) enum RespoEventType {
Click
DblClick
Change
Keydown
Keyup
Keypress
Input
Focus
Blur
DragStart
DragEnd
DragOver
DragEnter
DragLeave
Drop
}impl Eq for RespoEventTypeimpl Hash for RespoEventTypeimpl Show for RespoEventTypepub(all) type RespoIndexKey Stringimpl Eq for RespoIndexKeyimpl Show for RespoIndexKey#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn RespoIndexKey::inner(self : RespoIndexKey) -> Stringfn[T] a(inner_text? : String, class_name? : String, class_list? : Array[String], href~ : String, download? : String, target? : AnchorElementTarget, attrs? : Map[String, String], type_? : String, event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children? : Array[RespoNode[T]]) -> RespoNode[T]fn attach_event(element : Element, key : RespoEventType, coord : T[RespoCoord], handle_event : (RespoEventMark) -> Unit raise RespoCommonError) -> Unit raise RespoCommonErrorfn[T] b(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] br(attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] build_dom_tree(tree : RespoNode[T], coord : T[RespoCoord], handle_event : (RespoEventMark) -> Unit raise RespoCommonError) -> Node raise RespoCommonErrorfn[T] button(class_name? : String, class_list? : Array[String], inner_text~ : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, on_click? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]fn[T] canvas(class_name? : String, class_list? : Array[String], height? : Int, width? : Int, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] code(class_name? : String, class_list? : Array[String], inner_text~ : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] collect_effects_inside_out_as(tree : RespoNode[T], coord : T[RespoCoord], dom_path : T[UInt], effect_type : RespoEffectType, changes : Ref[Array[DomChange[T]]]) -> Unit raise RespoCommonErrorfn[T] collect_effects_outside_in_as(tree : RespoNode[T], coord : T[RespoCoord], dom_path : T[UInt], effect_type : RespoEffectType, changes : Ref[Array[DomChange[T]]]) -> Unit raise RespoCommonError#callsite(autofill(loc))
fn[U : Show] contained_static_style(rules : Array[(String?, U, RespoStyle)], loc~ : SourceLoc) -> Stringlet _style_demo : String = contained_static_style([
(
Some("@media only screen and (max-width: 600px)"),
"&",
@css.respo_style(margin=4 |> Px, background_color=Hsl(200, 90, 96)),
),
])fn[T] create_element(name : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]#deprecated("This function is deprecated.")
#callsite(autofill(loc))
fn[U : Show] declare_contained_style(rules : Array[(String?, U, RespoStyle)], loc~ : SourceLoc) -> String#deprecated("This function is deprecated.")
#callsite(autofill(loc))
fn[U : Show] declare_static_style(rules : Array[(U, RespoStyle)], loc~ : SourceLoc) -> Stringfn[T] diff_tree(new_tree : RespoNode[T], old_tree : RespoNode[T], coord : T[RespoCoord], dom_path : T[UInt], changes : Ref[Array[DomChange[T]]]) -> Unit raise RespoCommonErrorfn[T] div(class_name? : String, class_list? : Array[String], attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]], innerHTML? : String, draggable? : Bool, on_click? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drag_start? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drag_end? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drag_over? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drag_enter? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drag_leave? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_drop? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]fn[T] div_listed(class_name? : String, class_list? : Array[String], attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[(RespoIndexKey, RespoNode[T])]) -> RespoNode[T]fn[T] h1(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] h2(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] h3(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] h4(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] h5(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] h6(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]]) -> RespoNode[T]fn[T] hr(class_name? : String, class_list? : Array[String], attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] i(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]], on_click? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]fn[T] iframe(class_name? : String, class_list? : Array[String], height? : Int, width? : Int, loading? : IframeElementLoading, src~ : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] img(class_name? : String, class_list? : Array[String], alt~ : String, height? : Int, src~ : String, width? : Int, loading? : ImgElementLoading, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]fn[T] input(class_name? : String, class_list? : Array[String], autocomplete? : TextareaElementAutoComplete, autofocus? : Bool, disabled? : Bool, name? : String, placeholder? : String, readonly_? : Bool, spellcheck? : Bool, attrs? : Map[String, String], value~ : String, event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, on_input? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_change? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keydown? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keyup? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keypress? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_focus? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_blur? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]fn[T] li(class_name? : String, class_list? : Array[String], attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]], innerHTML? : String) -> RespoNode[T]fn[T] load_coord_target_tree(tree : RespoNode[T], coord : ArrayView[RespoCoord]) -> RespoNode[T] raise RespoCommonErrorfn[T] patch_tree(tree : RespoNode[T], old_tree : RespoNode[T], mount_target : Node, changes : Array[DomChange[T]], handle_event : (RespoEventMark) -> Unit raise RespoCommonError) -> Unit raise RespoCommonErrorfn[T] pre(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children? : Array[RespoNode[T]]) -> RespoNode[T]fn respo_attrs(id? : String, class_name? : String, hidden? : Bool, disabled? : Bool, value? : String, src? : String, href? : String, alt? : String, title? : String, placeholder? : String, type_? : String, name? : String, checked? : Bool, selected? : Bool, read_only? : Bool, max_length? : Int, min_length? : Int, tab_index? : Int, content_editable? : Bool, width? : String, height? : String, inner_text? : String, innerHTML? : String, draggable? : Bool, data? : Map[String, String]) -> Map[String, String]fn[T] span(class_name? : String, class_list? : Array[String], inner_text? : String, innerHTML? : String, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, children : Array[RespoNode[T]], on_click? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]#callsite(autofill(loc))
fn[U : Show] static_style(rules : Array[(U, RespoStyle)], loc~ : SourceLoc) -> Stringlet _style_demo : String = static_style([
("&", @css.respo_style(margin=4 |> Px, background_color=Hsl(200, 90, 96))),
])fn[T] text_node(class_name? : String, class_list? : Array[String], style? : RespoStyle, text : String) -> RespoNode[T]fn[T] textarea(class_name? : String, class_list? : Array[String], value~ : String, autocomplete? : TextareaElementAutoComplete, autofocus? : Bool, disabled? : Bool, name? : String, placeholder? : String, readonly_? : Bool, spellcheck? : Bool, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle, on_input? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_change? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keydown? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keyup? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_keypress? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_focus? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError, on_blur? : (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError) -> RespoNode[T]fn[T] video(class_name? : String, class_list? : Array[String], height? : Int, width? : Int, src~ : String, controls? : Bool, preload? : VideoElementPreload, attrs? : Map[String, String], event? : Map[RespoEventType, (RespoEvent, DispatchFn[T]) -> Unit raise RespoCommonError], style? : RespoStyle) -> RespoNode[T]