glazier-react-widget-0.5.0.0: Generic widget library using glazier-react
Glazier.React.Widgets.Input
data Command Source #
Constructors
data Action Source #
Instances
Methods
_Action :: Prism' Action Action Source #
_SendCommandsAction :: Prism' Action [Command] Source #
_SubmitAction :: Prism' Action JSString Source #
_InputRefAction :: Prism' Action JSVal Source #
class AsAction r where Source #
_Action :: Prism' r Action Source #
_SendCommandsAction :: Prism' r [Command] Source #
_SubmitAction :: Prism' r JSString Source #
_InputRefAction :: Prism' r JSVal Source #
data Schema Source #
Fields
disposing :: Model -> SomeDisposable #
schema :: Lens' Schema Schema Source #
className :: Lens' Schema JSString Source #
placeholder :: Lens' Schema JSString Source #
outline :: Model -> Outline #
plan :: Lens' (Scene Model Plan) Plan Source #
component :: Lens' (Scene Model Plan) ReactComponent Source #
inputRef :: Lens' (Scene Model Plan) JSVal Source #
key :: Lens' (Scene Model Plan) JSString Source #
onInputRef :: Lens' (Scene Model Plan) (Callback (JSVal -> IO ())) Source #
onKeyDown :: Lens' (Scene Model Plan) (Callback (JSVal -> IO ())) Source #
onRender :: Lens' (Scene Model Plan) (Callback (JSVal -> IO JSVal)) Source #
plan :: Lens' (Gizmo Model Plan) Plan Source #
component :: Lens' (Gizmo Model Plan) ReactComponent Source #
inputRef :: Lens' (Gizmo Model Plan) JSVal Source #
key :: Lens' (Gizmo Model Plan) JSString Source #
onInputRef :: Lens' (Gizmo Model Plan) (Callback (JSVal -> IO ())) Source #
onKeyDown :: Lens' (Gizmo Model Plan) (Callback (JSVal -> IO ())) Source #
onRender :: Lens' (Gizmo Model Plan) (Callback (JSVal -> IO JSVal)) Source #
schema :: Lens' (Scene Model Plan) Schema Source #
className :: Lens' (Scene Model Plan) JSString Source #
placeholder :: Lens' (Scene Model Plan) JSString Source #
schema :: Lens' (Gizmo Model Plan) Schema Source #
className :: Lens' (Gizmo Model Plan) JSString Source #
placeholder :: Lens' (Gizmo Model Plan) JSString Source #
class HasSchema c where Source #
Minimal complete definition
schema
schema :: Lens' c Schema Source #
className :: Lens' c JSString Source #
placeholder :: Lens' c JSString Source #
data Plan Source #
Associated Types
type Rep Plan :: * -> * #
from :: Plan -> Rep Plan x #
to :: Rep Plan x -> Plan #
disposing :: Plan -> SomeDisposable #
plan :: Lens' Plan Plan Source #
component :: Lens' Plan ReactComponent Source #
inputRef :: Lens' Plan JSVal Source #
key :: Lens' Plan JSString Source #
onInputRef :: Lens' Plan (Callback (JSVal -> IO ())) Source #
onKeyDown :: Lens' Plan (Callback (JSVal -> IO ())) Source #
onRender :: Lens' Plan (Callback (JSVal -> IO JSVal)) Source #
class HasPlan c where Source #
plan
plan :: Lens' c Plan Source #
component :: Lens' c ReactComponent Source #
inputRef :: Lens' c JSVal Source #
key :: Lens' c JSString Source #
onInputRef :: Lens' c (Callback (JSVal -> IO ())) Source #
onKeyDown :: Lens' c (Callback (JSVal -> IO ())) Source #
onRender :: Lens' c (Callback (JSVal -> IO JSVal)) Source #
type Outline = Schema Source #
type Model = Schema Source #
type Widget = Widget Command Action Outline Model Plan Source #
widget :: Widget Source #
whenKeyDown :: JSVal -> MaybeT IO (Maybe JSString, JSVal) Source #