add_attribute


Description:

[ Version ( since = "2.4" ) ]
public abstract void add_attribute (CellRenderer cell, string attribute, int column)

Adds an attribute mapping to the list in this.

The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value. So for example if column 2 of the model contains strings, you could have the “text” attribute of a CellRendererText get its values from column 2.

Parameters:

this

a CellLayout

cell

a CellRenderer

attribute

an attribute on the renderer

column

the column position on the model to get the attribute from




2022 vala-language.org