Skip to content

how to set the color fill for a single row in a table? #357

@dbalsom

Description

@dbalsom

The documentation for Cells::fill states

pub fn fill(self, value: Fill) -> Self
Sets the cell fill color. It accepts either a specific color, or an array of colors or a 2D array of colors

However I cannot see any way to actually give it a '2D array of colors'

It accepts a Fill which is defined as a struct with a single color in it

pub struct Fill {
color: Option<Box>,
}

Is the documentation out of date, and if so is there some other way or an example that shows how to set a single row background fill?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions