LightEditorTemplate

Компонент шаблона для использования внутри LightEditor

Props

template

  • type: LightEditorTemplate
  • required: true

Обьект шаблона

@example type

  id: number;
  name: string;
}

removable

  • type: boolean
  • default: false

Возможность удаления шаблона
Связано с событием remove:template

fixed

  • type: boolean
  • default: false

Ограничение ширины 70px и обрезание дальнейшего текста

pending

  • type: boolean
  • default: false

Events

Event namePropertiesDescription
select:templatetemplateId number - id шаблона из template.idСобытие нажатия на компонент
remove:templatetemplateId number - id шаблона из template.idСобытие нажатия на кнопку удаления

Slots

NameDescriptionBindings
default