Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Local t
- data Shared
- data Event t a
- data Behavior t a
- stepper :: a -> Event (Local t) a -> Behavior (Local t) a
- accumB :: a -> Event (Local t) (a -> a) -> Behavior (Local t) a
- track :: Eq k => Behavior (Local t) [k] -> (k -> StartComponent a) -> Behavior (Local t) [Component (Dynamic t) a]
- never :: Event (Local t) a
- merge :: Event (Local t) a -> Event (Local t) a -> Event (Local t) a
- mergeAll :: [Event (Local t) a] -> Event (Local t) a
- useB :: Behavior Shared a -> Behavior (Local t) a
- useE :: Event Shared a -> Event (Local t) a
- whenJust :: Event t (Maybe a) -> Event t a
- data Component t a
- data Static
- data Dynamic t
- type MasterDomEvent = Event Shared DomEventInfo
- type DomEventInfo = (ElementId, EventName, EventData)
- type ElementId = Int
- type Namespace = Maybe String
- type TagName = String
- type AttributeName = String
- type AttributeValue = String
- type EventName = String
- type EventData = String
- data ElementAction
- = Create ElementId Namespace TagName
- | Replace ElementId ElementId
- | Destroy ElementId
- | SetAttribute ElementId AttributeName AttributeValue
- | UnsetAttribute ElementId AttributeName
- | SetText ElementId (Maybe String)
- | AddChildren ElementId [ElementId]
- | Subscribe ElementId EventName
- | Unsubscribe ElementId EventName
- data Start t a
- data StartComponent a = StartComponent (forall s. Start s (Component (Dynamic s) a))
- data Void :: *
- runStartRoot :: StartComponent a -> IO ([ElementAction], ElementId, DomEventInfo -> IO [ElementAction])
- startC :: Behavior (Local t) (Component Static a) -> Start t (Component (Dynamic t) a)
- startB :: Behavior (Local t) a -> Start t (Behavior Shared a)
- silence :: Component Static void -> Component Static a
- getEvent :: Component (Dynamic t) a -> Event (Local t) a
- addEvent :: EventName -> (EventData -> a) -> Component Static a -> Component Static a
- replaceEvent :: EventName -> Component Static void -> Component Static EventData
- textComponent :: Maybe String -> String -> [(String, String)] -> String -> Component Static Void
- containerComponent :: Maybe String -> String -> [(String, String)] -> [Component Static a] -> Component Static a
- emptyComponent :: Maybe String -> String -> [(String, String)] -> Component Static Void
- mount :: Component (Dynamic t) a -> Component Static a
Documentation
track :: Eq k => Behavior (Local t) [k] -> (k -> StartComponent a) -> Behavior (Local t) [Component (Dynamic t) a] Source #
type MasterDomEvent = Event Shared DomEventInfo Source #
type AttributeName = String Source #
type AttributeValue = String Source #
data ElementAction Source #
data StartComponent a Source #
StartComponent (forall s. Start s (Component (Dynamic s) a)) |
Uninhabited data type
Since: 4.8.0.0
runStartRoot :: StartComponent a -> IO ([ElementAction], ElementId, DomEventInfo -> IO [ElementAction]) Source #
textComponent :: Maybe String -> String -> [(String, String)] -> String -> Component Static Void Source #