UNPKG

@omnia/fx

Version:

Provide Omnia Fx typings and tooling for clientside Omnia development.

26 lines (25 loc) 1.88 kB
import { LayoutDefinition, Section, Block, LayoutSettings, BlockLayoutSettings, ImageBackground, GuidValue, ColumnedSectionItemSettings, SectionItem, TabbedSectionItemSettings, SectionSettings, SectionTypes, AccordionedSectionItemSettings, SteppedSectionItemSettings, IBlockInstance, LoadedLayout, MultilingualString, BlockLockSettings } from "../../../models"; import { MultilingualStore } from "../../../stores"; /** * Factory for Layout items * */ export declare class LayoutItemFactory { static createSearchHandler(blockInstance: IBlockInstance, block: Block, layout: LoadedLayout, multilingualStore: MultilingualStore): (value: MultilingualString) => void; static createLayout(parentLayoutId?: string): LayoutDefinition; static createSection(type: SectionTypes): Section; static createColumn(): SectionItem<ColumnedSectionItemSettings>; static createTab(languageTag?: string): SectionItem<TabbedSectionItemSettings>; static createAccordion(languageTag?: string): SectionItem<AccordionedSectionItemSettings>; static createStep(languageTag?: string): SectionItem<SteppedSectionItemSettings>; static createBlock(manifestId: GuidValue, elementName?: string): Block; static getDefaultLockSettings(): BlockLockSettings; static getDefaultLayoutSettings(): LayoutSettings; static getDefaultSectionSettings(type: SectionTypes): SectionSettings; static getDefaultColumnSettings(): ColumnedSectionItemSettings; static getDefaultTabSettings(languageTag?: string): TabbedSectionItemSettings; static getDefaultAccordionSettings(languageTag?: string): AccordionedSectionItemSettings; static getDefaultStepSettings(languageTag?: string): SteppedSectionItemSettings; static getDefaultBlockSettings(): BlockLayoutSettings; static getDefaultImageBackground(): ImageBackground; static getDefaultLabelText(): string; }