Skip to content

ObjectsGridCardCell ​

Overview ​

Renders a single field as a label/value pair in the card-layout view of ObjectsGrid.

Theme entry: ObjectsGridCardCell

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
fieldobjectyesField definition object; name, label, value, and formatted properties are used by this component.
objobjectyesThe raw data object for the current row.
relatedObjectobjectyesRelated (joined) object data for the current row.
calculatedObjectobjectyesPre-calculated derived values for the current row.
rowIndexnumberyesZero-based index of the current row.
columnIndexnumberyesZero-based index of the current column.
rowCountnumberyesTotal number of rows in the grid.
columnCountnumberyesTotal number of columns in the grid.
fieldPropsobject{}Additional props forwarded to the value slot.
pkKeystring"id"Name of the primary key property on obj.
pkstring|numberundefinedPrimary key value of the current row's object.
headerClassstring""Additional CSS class applied to the field label header element.

Slots ​

header ​

Scoped slot.

Bindings ​

NameDescription
key
class
rowIndex
columnIndex
rowCount
columnCount
field
isTableLayout
isCardLayout
dataCardHeader

value ​

Scoped slot.

Bindings ​

NameDescription
key
calculatedObj
columnIndex
field
formatted
isTableLayout
isCardLayout
obj
pk
pkKey
relatedObj
rowIndex
rowCount
columnCount
value

Source ​

client/lib/objects-grid/ObjectsGridCardCell.vue