Module
Ace.Halogen.Component
- Package
- purescript-ace-halogen
- Repository
- slamdata/purescript-ace-halogen
#aceComponent Source
aceComponent :: forall m eff. MonadAff (AceEffects eff) m => (Editor -> m Unit) -> Maybe Autocomplete -> Component HTML AceQuery Unit AceMessage m
The Ace component.
#AceQuery Source
data AceQuery a
Ace query algebra
SetElement
- used to capture a reference to the component's elementInit
- used internally to handle initialization of componentQuit
- used internally to handle finalizing of component.GetText
- gets the current text valueSetText
- alters the current text valueSetAutocomplete
- sets autocomplete resume:Nothing
- turns it offJust Basic
- enables basic autocompletions (triggered byAlt + Space
orCtrl + Space
)Just Live
- enables live autocomplete
SetCompleteFn
- sets function providing autocomplete variants.GetEditor
- returns ace editor instance handled by this component.
Constructors
Init a
Quit a
GetText (String -> a)
SetText String a
SetAutocomplete (Maybe Autocomplete) a
SetCompleteFn (forall eff. CompleteFn eff) a
GetEditor (Maybe Editor -> a)
HandleChange (SubscribeStatus -> a)
#AceMessage Source
data AceMessage
Ace output messages
AceValueChanged
- raised when the value in the editor is changed.
Constructors
#CompleteFn Source
type CompleteFn eff = Editor -> EditSession -> Position -> String -> Aff (AceEffects eff) (Array Completion)
The type for autocomplete function s. Takes editor, session, text position,
prefix, and returns array of possible completions in the Aff
monad.
- Modules
- Ace.
Halogen. Component