Module
Halogen.Data.Slot
- Package
- purescript-halogen
- Repository
- purescript-halogen/purescript-halogen
#Slot Source
data Slot :: (Type -> Type) -> Type -> Type -> Type
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 slots slot. SlotStorage slots slot
#insert Source
insert :: forall sym px slots slot query output s. Cons sym (Slot query output s) px slots => IsSymbol sym => Ord s => Proxy sym -> s -> slot query output -> SlotStorage slots slot -> SlotStorage slots slot
#pop Source
pop :: forall sym px slots slot query output s. Cons sym (Slot query output s) px slots => IsSymbol sym => Ord s => Proxy sym -> s -> SlotStorage slots slot -> Maybe (Tuple (slot query output) (SlotStorage slots slot))
#foreachSlot Source
foreachSlot :: forall m slots slot. Applicative m => SlotStorage slots slot -> (forall query output. 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. Event - Halogen.
Query. HalogenM - Halogen.
Query. HalogenQ - Halogen.
Query. Input - Halogen.
VDom. Driver