SMART datagrid v.1 > Classes

Back  Forward

abstract DataLudi.Fill  class

The fill information object which is used to draw the background of data cell. 

It is used as Grid Styles property. When specify property value, it will specify as string or number and create or reuse as an appropriate fill object internally. You do not need to directly create this class object. Please refer to Fill And Stroke page. 

 

Code -1
    colum.setStyles({
        // solid fill
        background: '#ff0000'
        // solid text fill
        color: '#ff00ff00'
        // linear gradient fill
        shapeColor: 'linear,#ffffff,#f0f0f0,90'
    });
    // solid fill
    column.styles().setBackground(0xff00ff00);
See Also
Fill And Stroke
Stroke
Grid Styles
Color
Examples
Column Styles