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 mThe Ace component.
#AceQuery Source
data AceQuery aAce 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 + SpaceorCtrl + Space)Just Live- enables live autocomplete
SetCompleteFn- sets function providing autocomplete variants.GetEditor- returns ace editor instance handled by this component.
Constructors
Init aQuit aGetText (String -> a)SetText String aSetAutocomplete (Maybe Autocomplete) aSetCompleteFn (forall eff. CompleteFn eff) aGetEditor (Maybe Editor -> a)HandleChange (SubscribeStatus -> a)
#AceMessage Source
data AceMessageAce 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