For the complete documentation index, see llms.txt. This page is also available as Markdown.

GridColumn

Defines a column in a data grid component.

Syntax

<bx:gridcolumn 
    name="string"
    header="string"
    width="string"
    sortable="boolean"
    editable="boolean"
    dataAlign="string"
    headerAlign="string"
    display="boolean"
    type="string"
    numberFormat="string"
    dateFormat="string"
    values="string"
    valuesDisplay="string"
    href="string"
    target="string" />

Attributes

Attribute
Type
Required
Description
Default

name

string

Yes

Column data field name

header

string

No

Column header text

name

width

string

No

Column width (CSS value)

sortable

boolean

No

Enable sorting for this column

true

editable

boolean

No

Enable editing for this column

false

dataAlign

string

No

Data alignment: left, center, right

left

headerAlign

string

No

Header alignment: left, center, right

left

display

boolean

No

Whether to display this column

true

type

string

No

Data type: string, html, numeric, date, boolean. If html, the content will not be HTML-encoded

string

numberFormat

string

No

Number format mask for numeric columns

dateFormat

string

No

Date format mask for date columns

values

string

No

Comma-delimited list of values for dropdown editing

valuesDisplay

string

No

Display values corresponding to values list

href

string

No

URL pattern for making column data into links

target

string

No

Link target (_blank, _self, etc.)

Usage Notes

  • Must be used within a <bx:grid> component

  • The name attribute should match a field in the grid's query data

  • Grid - Parent grid component

  • GridRow - Grid row component

Last updated

Was this helpful?