Module
Halogen.Data.Slot
- Package
- purescript-halogen
- Repository
- purescript-halogen/purescript-halogen
#Slot Source
data Slot (query :: Type -> Type) output slot
A type which records the queries, output messages, and slot identifier for a particular slot (ie. a location in HTML where a component is rendered). For example:
type ButtonSlot slot = Slot Button.Query Button.Output slot
-- A component using this slot type can have one type of child component,
-- which supports `Button.Query` queries, `Button.Output` outputs, and
-- which can be uniquely identified by an integer.
type Slots = ( button :: ButtonSlot Int )
query
represents the requests that can be made of this componentoutput
represents the output messages that can be raised by this componentslot
represents the unique identifier for this component
#empty Source
empty :: forall slot slots. SlotStorage slots slot
#insert Source
insert :: forall s output query slot slots px sym. Cons sym (Slot query output s) px slots => IsSymbol sym => Ord s => SProxy sym -> s -> slot query output -> SlotStorage slots slot -> SlotStorage slots slot
#pop Source
pop :: forall s output query slot slots px sym. Cons sym (Slot query output s) px slots => IsSymbol sym => Ord s => SProxy sym -> s -> SlotStorage slots slot -> Maybe (Tuple (slot query output) (SlotStorage slots slot))
#foreachSlot Source
foreachSlot :: forall slot slots m. Applicative m => SlotStorage slots slot -> (forall output query. slot query output -> m Unit) -> m Unit
- Modules
- Halogen
- Halogen.
Aff - Halogen.
Aff. Driver - Halogen.
Aff. Driver. Eval - Halogen.
Aff. Driver. State - Halogen.
Aff. Util - Halogen.
Component - Halogen.
Component. Profunctor - Halogen.
Data. OrdBox - Halogen.
Data. Slot - Halogen.
HTML - Halogen.
HTML. Core - Halogen.
HTML. Elements - Halogen.
HTML. Elements. Keyed - Halogen.
HTML. Events - Halogen.
HTML. Properties - Halogen.
HTML. Properties. ARIA - Halogen.
Query - Halogen.
Query. ChildQuery - Halogen.
Query. EventSource - Halogen.
Query. HalogenM - Halogen.
Query. HalogenQ - Halogen.
Query. Input - Halogen.
VDom. Driver