tyrian
Type members
Classlikes
Attribute of an HTML tag
Attribute of an HTML tag
Attributes are like properties, but can be removed. This is important for attributes like disabled, hidden, selected where there is no value, they are present and therefore set, or absent and unset.
- Companion:
- object
A command describes some side-effect to perform.
A command describes some side-effect to perform.
The difference with a Task
is that a command never produces error values.
- Companion:
- object
An HTML element can be a tag or a text node
An HTML element can be a tag or a text node
Event handler
Event handler
- Value parameters:
- msg
Message to produce when the event is triggered
- name
Event name (e.g.
"click"
)
Base class for HTML tags
Base class for HTML tags
- Companion:
- object
Property of a DOM node instance
Property of a DOM node instance
Properties are a type of attribute that can only be set, not removed.
- Companion:
- object
A subscription describes a resource that an application is interested in.
A subscription describes a resource that an application is interested in.
Examples:
- a timeout notifies its subscribers when it expires,
- a video being played notifies its subscribers with subtitles.
- Type parameters:
- Msg
Type of message produced by the resource
- Companion:
- object
An HTML tag
An HTML tag
A task describes some side-effect to perform.
A task describes some side-effect to perform.
Examples:
- An XHR
- Type parameters:
- Err
Type of error produced the task
- Success
Type of successful value produced by the task
- Companion:
- object