UTableEntity column templates. Exported by @unitybase/adminui-vue
as columnTemplates
and can be used as
// valid usage
const columnTemplates = require('@unitybase/adminui-vue').columnTemplates
// WRONG usage
const helpers = require('@unitybase/adminui-vue/components/UTableEntity/column-template-provider')
Methods
# getByColumnAttribute (attributeopt: object) → ColumnDefinition inner
Get column definition by an attribute definition
Arguments:
attribute
: object
# registerTemplate (type: string, settings: UTableColumnSettings, cellTemplateopt: Vue.Component, filtersopt: Object.<string, UTableColumnFilter>) inner
Register new cell template
Arguments:
type
: stringType from UBDomain.ubDataTypes ot
settings
: UTableColumnSettingsColumn settings
cellTemplate
: Vue.ComponentCell template
filters
= {}: Object.<string, UTableColumnFilter>Filters templates
Types
# ColumnDefinition inner
Properties
settings
: objecttemplate
: Vue.Componentfilters
: Object.<string, UTableColumnFilter>