UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

30 lines (29 loc) 1.06 kB
import { BasePart, Part } from '..'; import { TemplateResult } from '@blinkk/selective-edit'; import { DataStorage } from '../../../utility/dataStorage'; import { EditorState } from '../../state'; import { LiveEditor } from '../../..'; export interface MenuSectionPartConfig { isExpandedByDefault?: boolean; /** * State class for working with editor state. */ state: EditorState; /** * Storage class for working with settings. */ storage: DataStorage; } export declare class MenuSectionPart extends BasePart implements Part { config: MenuSectionPartConfig; isExpanded?: boolean; constructor(config: MenuSectionPartConfig); classesForPart(): Record<string, boolean>; get key(): string; template(editor: LiveEditor): TemplateResult; templateActionExpandCollapse(editor: LiveEditor): TemplateResult; templateContent(editor: LiveEditor): TemplateResult; templateHeader(editor: LiveEditor): TemplateResult; templateTitle(editor: LiveEditor): TemplateResult; get title(): string; }