Module
Select.Primitive.Container
- Package
- purescript-halogen-select
- Repository
- citizennet/purescript-halogen-select
#Message Source
data Message item o e
The Container sends the parent messages in two instances:
Emit
: An embedded query has been triggered, and you must decide how to handle it; typically via evaluating in the parent or re-routing the query to another primitive.ItemSelected
: An item has been selected from the container.
Constructors
Emit (Dispatch item o e Unit)
ItemSelected item
#component Source
component :: forall e o item. Component HTML (Dispatch item o e) (ContainerInput item o e) (Message item o e) (FX e)
The primitive handles state and transformations but defers all rendering to the parent. The
render function can be written using our helper functions to ensure the right events are included. See the Dispatch
module for more information.