123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- export = tocbot;
- export as namespace tocbot;
- declare namespace tocbot {
-
- interface IStaticOptions {
-
- tocSelector?: string
-
- contentSelector?: string
-
- headingSelector?: string
-
- ignoreSelector?: string
-
- hasInnerContainers?: boolean
-
- linkClass?: string
-
- extraLinkClasses?: string
-
- activeLinkClass?: string
-
- listClass?: string
-
- extraListClasses?: string
-
- isCollapsedClass?: string
-
-
- collapsibleClass?: string
-
- listItemClass?: string
-
- activeListItemClass?: string
-
-
-
-
-
- collapseDepth?: number
-
- scrollSmooth?: boolean
-
- scrollSmoothDuration?: number
-
- scrollSmoothOffset?: number
-
- scrollEndCallback?(e: WheelEvent): void
-
- headingsOffset?: number
-
-
- throttleTimeout?: number
-
- positionFixedSelector?: string | null
-
-
- positionFixedClass?: string
-
-
-
- fixedSidebarOffset?: 'auto' | number
-
-
- includeHtml?: boolean
-
-
-
- includeTitleTags?: boolean
-
-
- onClick?: (e: MouseEvent) => void
-
-
- orderedList?: boolean
-
- scrollContainer?: string | null
-
- skipRendering?: boolean
-
-
-
- headingLabelCallback?: (headingLabel: string) => string
-
- ignoreHiddenElements?: boolean
-
-
-
-
- headingObjectCallback?: (obj: object, node: HTMLElement) => object | void
-
- basePath?: string
-
-
- disableTocScrollSync?: boolean
-
-
- tocScrollOffset?: number
- }
-
- function init(options?: IStaticOptions): void
- /**
- * Destroy tocbot and remove event listeners.
- * @see https://github.com/tscanlin/tocbot#destroy
- */
- function destroy(): void
- /**
- * Refresh tocbot if the document changes and it needs to be rebuilt.
- * @see https://github.com/tscanlin/tocbot#refresh
- */
- function refresh(options?: IStaticOptions): void
- }
|