@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
26 lines (25 loc) • 1.76 kB
TypeScript
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(): SectionItem<TabbedSectionItemSettings>;
static createAccordion(): SectionItem<AccordionedSectionItemSettings>;
static createStep(): 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(): TabbedSectionItemSettings;
static getDefaultAccordionSettings(): AccordionedSectionItemSettings;
static getDefaultStepSettings(): SteppedSectionItemSettings;
static getDefaultBlockSettings(): BlockLayoutSettings;
static getDefaultImageBackground(): ImageBackground;
static getDefaultLabelText(): string;
}