Types
# TableScopedSlot (cfg, rowopt: object, columnopt: object, valueopt: *) inner
It returns store and close params for toolbar slots, or row, column, value for column slots.
# TableScopedSlotsBuilder (createElement: function) inner
Uses for inject scoped slots programmatically
# TableScopedSlotsConfig inner
List of scoped slots. Look available slots in UTableEntity component
# UTableColumn inner
UTable column definition - extends UTableColumnSettings
Properties
id: stringUnique column property name
label: stringColumn label which shows in header cells
attribute: UBEntityAttributeMeta attribute info from UB entity schema
valueAttributeopt : stringWhether isLookup and has current attribute value in fieldList.
toValidateopt : booleanTo check this column in the
validateFieldListmethod. Need to mark columns that do not have their own scoped slots and are not available in the fieldList. Displaying of cell value may be done with thecolumn.formatfunction or with a template for this cell that is registered globally with thecolumnTemplates.registerTemplatemethod
# UTableColumnFilter inner
Properties
# UTableColumnFormat (value: *, column: UTableColumn, row: object) inner
Arguments:
value: *column: UTableColumnrow: object
# UTableColumnFormatXls (column: UTableColumn) inner
It is comfortable to return some value of the XLSXStyle.predefinedFormats object since these styles are already registered by XLSX
Arguments:
column: UTableColumn
# UTableColumnFormula (value: *, exportTo: String) inner
Arguments:
value: *exportTo: String
# UTableColumnSettings inner
Properties
sortableopt : booleanAllow ordering records by values of the column.
filterableopt : booleanIf set false, the column cannot be filtered. Otherwise, default and optional custom filters will be applied
isLookupopt = false : booleanIf true - check attribute associatedEntity and loads description attribute for displayed value
lookupPartitionKeyopt : number | stringPartition key for lookup attribute
summaryAggregationOperatoropt : 'SUM' | 'MIN' | 'MAX' | 'AVG' | nullSpecify aggregation operator to use, when calculate a summary for a column. If not set, column default will be used. If set to
null, then summary will be disabled for column.alignopt = 'left' : 'left' | 'right' | 'center'Align text in column
headerAlignopt = 'left' : 'left' | 'right' | 'center'Align text in column header
maxWidthopt : numberMaximum width
minWidthopt : numberMinimum width
widthopt : numberWidth
isHtmlopt = false : booleanIf set true will render content as v-html directive
formatopt : UTableColumnFormatFunction what returns a formatted cell value to be inserted as cell innerHTML. Ignored in case slot is defined for column.
exportFormatopt : UTableColumnFormatFunction what returns a formula to be inserted as cell formula in xlsx or additional element in html.
exportFormulaopt : UTableColumnFormulaFunction what returns a formatted cell value to be used during exports. If omitted - value will be used as is.
exportFormatXlsColumnopt : UTableColumnFormatXlsFunction that returns excel format depends on the column configuration
exportExpressionopt : stringEntity attribute expression to load for export. It may be useful when one attribute stores a value used for displaying in column cells (
column.id) and another attribute stores the original value needed for exporting (column.exportExpression)paddingopt = 16 : numbercolumn cells padding.
filtersopt = {} : object.<string, UTableColumnFilter>Filters templates
showTooltipopt = true : booleanIf set false, the tooltip will not be shown for the column.
# UTableFilterDefinition inner
Properties
columnId: stringlabel: stringdescription: stringwhereList: Array.<UTableFilterDefinitionWhereListItem>
# UTableFilterDefinitionWhereListItem inner
Properties
# UTableSort inner
Properties
column: stringorder: 'asc' | 'desc'
