agnostic/vdom/vattr
Types
pub type Attribute(message) {
Attribute(kind: Int, name: String, value: String)
Property(kind: Int, name: String, value: json.Json)
Event(
kind: Int,
name: String,
handler: decode.Decoder(Handler(message)),
include: List(String),
prevent_default: EventBehaviour,
stop_propagation: EventBehaviour,
debounce: Int,
throttle: Int,
)
}
Constructors
-
Attribute(kind: Int, name: String, value: String) -
Property(kind: Int, name: String, value: json.Json) -
Event( kind: Int, name: String, handler: decode.Decoder(Handler(message)), include: List(String), prevent_default: EventBehaviour, stop_propagation: EventBehaviour, debounce: Int, throttle: Int, )
pub type EventBehaviour {
Never(kind: Int)
Possible(kind: Int)
Always(kind: Int)
}
Constructors
-
Never(kind: Int) -
Possible(kind: Int) -
Always(kind: Int)
Values
pub const always: EventBehaviour
pub const always_kind: Int
pub const attribute_kind: Int
pub fn compare(
a: Attribute(message),
b: Attribute(message),
) -> order.Order
pub fn event(
name name: String,
handler handler: decode.Decoder(Handler(message)),
include include: List(String),
prevent_default prevent_default: EventBehaviour,
stop_propagation stop_propagation: EventBehaviour,
debounce debounce: Int,
throttle throttle: Int,
) -> Attribute(message)
pub const event_kind: Int
pub fn merge(
attributes: List(Attribute(message)),
merged: List(Attribute(message)),
) -> List(Attribute(message))
pub const never: EventBehaviour
pub const never_kind: Int
pub const possible: EventBehaviour
pub const possible_kind: Int
pub const property_kind: Int