columnName = $columnName; $this->label = $label; } /** * Specifies a list column rendering mode. Supported modes are: * - text - text column, aligned left * - number - numeric column, aligned right * @param string $type Specifies a render mode as described above */ public function displayAs($type) { $this->type = $type; return $this; } /** * Specifies CSS classes to apply to the table row element. */ public function cssClass($class) { $this->cssClass = $class; return $this; } }