Classes
AbstractEditorAnnotationCommandCommandComponentConfiguratorContainerEditorContainerSelectionDOMImporterDocumentDocumentNodeEditAnnotationCommandEditingEventEmitterInsertInlineNodeCommandNodeIndexPropertyAnnotationPropertySelectionProseEditorScrollPaneSelectionSpellCheckCommandSurfaceTextNodeTransactionDocumentVirtualElement
Components
Modules
ScrollPane
Class defined in packages/scroll-pane/ScrollPane.js#29 inherits from
Wraps content in a scroll pane.
NOTE: It is best practice to put all overlays as direct childs of the ScrollPane to reduce the chance that positioning gets messed up (position: relative)
Example
$$(ScrollPane, {
scrollbarType: 'substance', // defaults to native
scrollbarPosition: 'left', // defaults to right
onScroll: this.onScroll.bind(this),
highlights: this.contentHighlights,
tocProvider: this.tocProvider
})
this.getHeight()
Method defined in packages/scroll-pane/ScrollPane.js#147
Returns the height of scrollPane (inner content overflows)
this.getContentHeight()
Method defined in packages/scroll-pane/ScrollPane.js#155
Returns the cumulated height of a panel's content
this.getContentElement()
Method defined in packages/scroll-pane/ScrollPane.js#166
Get the .se-content
element
this.getScrollableElement()
Method defined in packages/scroll-pane/ScrollPane.js#173
Get the .se-scrollable
element
this.getScrollPosition()
Method defined in packages/scroll-pane/ScrollPane.js#180
Get current scroll position (scrollTop) of .se-scrollable
element
this.getPanelOffsetForElement(el)
Method defined in packages/scroll-pane/ScrollPane.js#195
Get offset relative to .se-content
.
Parameters
el | DOMNode | DOM node that lives inside the |
this.scrollTo(componentId)
Method defined in packages/scroll-pane/ScrollPane.js#207
Scroll to a given sub component.
Parameters
componentId | String | component id, must be present in data-id attribute |