Структура Представления#

Модель view#

View =

  • Id: guid

  • Title: string

  • Class: string

  • Query: json

  • Map: json

  • Settings: json

Модель данных#

interface IViewTitle {
    value: string;
    placeholder: string;
    textClip?: boolean;
}
interface IViewDescription extends IViewTitle {}
interface IViewCaption extends IViewTitle {
    color?: string;
}
interface IViewIcon {
    value: MRSIcon;
    color?: string;
}
interface IViewField extends IViewTitle {
    title: string;
}
interface IViewChip extends IViewTitle {
    icon?: MRSIcon;
    color?: string;
}
interface IViewUser {
    avatar?: string;
    name: string;
    caption?: string;
}
interface IViewImage {
    placeholder: string;
    images: IImage[];
}
interface IImage {
    url: string;
}

Примечание

В поля color подставляются только значения из темы, например, “primary.dark”.