dochub-sdk 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,10 +18,18 @@ export interface IDocHubConstructorMeta {
|
|
18
18
|
// Интерфейс конструкторов
|
19
19
|
export interface IDocHubConstructors {
|
20
20
|
// Регистрирует конструктор
|
21
|
+
// uid - Идентификатор конструктора
|
22
|
+
// title - Краткое название конструктора
|
23
|
+
// component - UI компонент конструктора
|
24
|
+
// meta - Мета-информация о конструкторе
|
21
25
|
register(uid: string, title: string, component: IDocHubConstructorComponent, meta?: IDocHubConstructorMeta);
|
22
26
|
// Возвращает список конструкторов
|
23
27
|
fetch():IDocHubConstructorItem[];
|
24
28
|
// Возвращает запись коллекции по идентификатору
|
29
|
+
// uid - Идентификатор конструктора
|
25
30
|
get(uid: string): IDocHubConstructorItem;
|
31
|
+
// Вызывает магазин выбора конструкторов по указанному шаблону идентификаторов
|
32
|
+
// pattern - шаблон идентификаторов по которому отбираются конструкторы
|
33
|
+
showStore(pattern?: RegExp);
|
26
34
|
}
|
27
35
|
|