Cell renderer that just prints the row number.
Cell renderer that just prints the row number.
You can use this for the first column to display a counter. Most of the times you will not need to use this class directly, since AnewtGridRenderer::add_count_column covers most use cases.
AnewtGridCellRendererCount($id, $initial_value=null) ¶Construct new AnewtGridCellRendererCount instance.
$idCell renderer id
$initial_valueThe initial value for the counter. Defaults to 1, but can be changed e.g. paginated grid listings.
render_cell($data) ¶Renders the cell.
$dataData to pack into the cell
Rendered cell
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()AnewtGridCellRenderer::__construct()AnewtGridCellRenderer::$idAnewtGridCellRenderer::fetch_value_from_data()AnewtGridCellRenderer::create_td()