Options
All
  • Public
  • Public/Protected
  • All
Menu

Extend the default implementation NotebookPanel.ContentFactory of IContentFactory.

Hierarchy

  • ContentFactory
    • ContentFactoryWithSidebar

Index

Constructors

constructor

  • new ContentFactoryWithSidebar(sidebarReact: any, commands: CommandRegistry, store: any, options?: IOptions): ContentFactoryWithSidebar

Properties

Private Readonly commands

commands: CommandRegistry

Private Readonly sidebarReact

sidebarReact: any

Private Readonly store

store: Store<any, AnyAction>

Accessors

editorFactory

  • get editorFactory(): Factory
  • The readonly editor factory that create code editors

    Returns Factory

Methods

createCellFooter

  • createCellFooter(): ICellFooter
  • Create a new cell footer for the parent widget.

    Returns ICellFooter

createCellHeader

  • createCellHeader(): ICellHeader

createCodeCell

  • createCodeCell(options: IOptions, parent: StaticNotebook): CodeCell
  • Create a new code cell widget.

    Notes

    If no cell content factory is passed in with the options, the one on the notebook content factory is used.

    Parameters

    • options: IOptions
    • parent: StaticNotebook

    Returns CodeCell

createInputPrompt

  • createInputPrompt(): IInputPrompt
  • Create an input prompt.

    Returns IInputPrompt

createMarkdownCell

  • createMarkdownCell(options: IOptions, parent: StaticNotebook): MarkdownCell
  • Create a new markdown cell widget.

    Notes

    If no cell content factory is passed in with the options, the one on the notebook content factory is used.

    Parameters

    • options: IOptions
    • parent: StaticNotebook

    Returns MarkdownCell

createNotebook

  • createNotebook(options: IOptions): Notebook
  • Create a new content area for the panel.

    Parameters

    • options: IOptions

    Returns Notebook

createOutputPrompt

  • createOutputPrompt(): IOutputPrompt
  • Create the output prompt for the widget.

    Returns IOutputPrompt

createRawCell

  • createRawCell(options: IOptions, parent: StaticNotebook): RawCell
  • Create a new raw cell widget.

    Notes

    If no cell content factory is passed in with the options, the one on the notebook content factory is used.

    Parameters

    • options: IOptions
    • parent: StaticNotebook

    Returns RawCell

createStdin

  • createStdin(options: IOptions): IStdin
  • Create an stdin widget.

    Parameters

    • options: IOptions

    Returns IStdin

Generated using TypeDoc