DVUI

cellOptions

Parameters

#
self:*const Banded
*const Banded
cell:Cell
Cell

Source

Implementation

#
pub fn cellOptions(self: *const Banded, cell: Cell) CellOptions {
        switch (self.banding) {
            .rows => {
                return if (cell.row_num % 2 == 0)
                    self.cell_opts
                else
                    self.alt_cell_opts;
            },
            .cols => {
                return if (cell.col_num % 2 == 0)
                    self.cell_opts
                else
                    self.alt_cell_opts;
            },
        }
    }