CellLayoutT.addAttribute

Adds an attribute mapping to the list in cell_layout.

The column is the column of the model to get a value from, and the attribute is the property on cell to be set from that value. So for example if column 2 of the model contains strings, you could have the “text” attribute of a gtk.cell_renderer_text.CellRendererText get its values from column 2. In this context "attribute" and "property" are used interchangeably.

template CellLayoutT()
override
void
addAttribute

Parameters

cell gtk.cell_renderer.CellRenderer
attribute string

a property on the renderer

column int

the column position on the model to get the attribute from