comindware.core.ui
Version:
Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.
26 lines (23 loc) • 540 B
text/typescript
import FormFieldAnchor from './form/FormFieldAnchor';
export function createEditorAnchor(key: string, options: {} = {}) {
return new FormFieldAnchor(
Object.assign(
{
key,
kind: 'editor'
},
options
)
);
}
export function createFieldAnchor(key: string, options: {} = {}) {
return new FormFieldAnchor(
Object.assign(
{
key,
kind: 'field'
},
options
)
);
}