Safe Haskell | None |
---|---|
Language | Haskell2010 |
- collapse :: (MonadDOM m, IsNode node) => Selection -> Maybe node -> Maybe Word -> m ()
- collapseToEnd :: MonadDOM m => Selection -> m ()
- collapseToStart :: MonadDOM m => Selection -> m ()
- deleteFromDocument :: MonadDOM m => Selection -> m ()
- containsNode :: (MonadDOM m, IsNode node) => Selection -> node -> Bool -> m Bool
- containsNode_ :: (MonadDOM m, IsNode node) => Selection -> node -> Bool -> m ()
- selectAllChildren :: (MonadDOM m, IsNode node) => Selection -> node -> m ()
- extend :: (MonadDOM m, IsNode node) => Selection -> node -> Maybe Word -> m ()
- getRangeAt :: MonadDOM m => Selection -> Word -> m Range
- getRangeAt_ :: MonadDOM m => Selection -> Word -> m ()
- removeAllRanges :: MonadDOM m => Selection -> m ()
- addRange :: MonadDOM m => Selection -> Range -> m ()
- toString :: (MonadDOM m, FromJSString result) => Selection -> m result
- toString_ :: MonadDOM m => Selection -> m ()
- setBaseAndExtent :: (MonadDOM m, IsNode baseNode, IsNode extentNode) => Selection -> Maybe baseNode -> Word -> Maybe extentNode -> Word -> m ()
- setPosition :: (MonadDOM m, IsNode node) => Selection -> Maybe node -> Maybe Word -> m ()
- empty :: MonadDOM m => Selection -> m ()
- modify :: (MonadDOM m, ToJSString alter, ToJSString direction, ToJSString granularity) => Selection -> Maybe alter -> Maybe direction -> Maybe granularity -> m ()
- getAnchorNode :: MonadDOM m => Selection -> m (Maybe Node)
- getAnchorNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node
- getAnchorNodeUnchecked :: MonadDOM m => Selection -> m Node
- getAnchorOffset :: MonadDOM m => Selection -> m Word
- getFocusNode :: MonadDOM m => Selection -> m (Maybe Node)
- getFocusNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node
- getFocusNodeUnchecked :: MonadDOM m => Selection -> m Node
- getFocusOffset :: MonadDOM m => Selection -> m Word
- getIsCollapsed :: MonadDOM m => Selection -> m Bool
- getRangeCount :: MonadDOM m => Selection -> m Word
- getType :: (MonadDOM m, FromJSString result) => Selection -> m result
- getBaseNode :: MonadDOM m => Selection -> m (Maybe Node)
- getBaseNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node
- getBaseNodeUnchecked :: MonadDOM m => Selection -> m Node
- getBaseOffset :: MonadDOM m => Selection -> m Word
- getExtentNode :: MonadDOM m => Selection -> m (Maybe Node)
- getExtentNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node
- getExtentNodeUnchecked :: MonadDOM m => Selection -> m Node
- getExtentOffset :: MonadDOM m => Selection -> m Word
- newtype Selection = Selection {
- unSelection :: JSVal
- gTypeSelection :: JSM GType
Documentation
collapseToEnd :: MonadDOM m => Selection -> m () Source #
collapseToStart :: MonadDOM m => Selection -> m () Source #
deleteFromDocument :: MonadDOM m => Selection -> m () Source #
removeAllRanges :: MonadDOM m => Selection -> m () Source #
setBaseAndExtent :: (MonadDOM m, IsNode baseNode, IsNode extentNode) => Selection -> Maybe baseNode -> Word -> Maybe extentNode -> Word -> m () Source #
modify :: (MonadDOM m, ToJSString alter, ToJSString direction, ToJSString granularity) => Selection -> Maybe alter -> Maybe direction -> Maybe granularity -> m () Source #
getAnchorNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node Source #
getFocusNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node Source #
getBaseNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node Source #
getExtentNodeUnsafe :: (MonadDOM m, HasCallStack) => Selection -> m Node Source #
Functions for this inteface are in JSDOM.Selection.