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
valueAttribute
opt : stringWhether isLookup and has current attribute value in fieldList.
toValidate
opt : booleanTo check this column in the
validateFieldList
method. 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.format
function or with a template for this cell that is registered globally with thecolumnTemplates.registerTemplate
method
# 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
sortable
opt : booleanAllow ordering records by values of the column.
filterable
opt : booleanIf set false, the column cannot be filtered. Otherwise, default and optional custom filters will be applied
isLookup
opt = false : booleanIf true - check attribute associatedEntity and loads description attribute for displayed value
lookupPartitionKey
opt : number | stringPartition key for lookup attribute
summaryAggregationOperator
opt : '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.align
opt = 'left' : 'left' | 'right' | 'center'Align text in column
headerAlign
opt = 'left' : 'left' | 'right' | 'center'Align text in column header
maxWidth
opt : numberMaximum width
minWidth
opt : numberMinimum width
width
opt : numberWidth
isHtml
opt = false : booleanIf set true will render content as v-html directive
format
opt : UTableColumnFormatFunction what returns a formatted cell value to be inserted as cell innerHTML. Ignored in case slot is defined for column.
exportFormat
opt : UTableColumnFormatFunction what returns a formula to be inserted as cell formula in xlsx or additional element in html.
exportFormula
opt : UTableColumnFormulaFunction what returns a formatted cell value to be used during exports. If omitted - value will be used as is.
exportFormatXlsColumn
opt : UTableColumnFormatXlsFunction that returns excel format depends on the column configuration
exportExpression
opt : 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
)padding
opt = 16 : numbercolumn cells padding.
filters
opt = {} : object.<string, UTableColumnFilter>Filters templates
# UTableFilterDefinition inner
Properties
columnId
: stringlabel
: stringdescription
: stringwhereList
: Array.<UTableFilterDefinitionWhereListItem>
# UTableFilterDefinitionWhereListItem inner
Properties
# UTableSort inner
Properties
column
: stringorder
: 'asc' | 'desc'