extends |
Column |
|---|
Example seed: [ColorRating::class, [ 'min' => 1, 'max' => 3, 'colors' => [ '#FF0000', '#FFFF00', '#00FF00' ] ]].
| Methods | ||
|---|---|---|
protected
|
init(): void
|
# |
public
|
getTagAttributes(string $position, array $attr = []): array
|
# |
public
|
getDataCellHtml(Field $field = null, array $attr = []): string
|
# |
public
|
getHtmlTags(Model $row, ?Field $field): array
|
# |
private
|
getColorFromValue(float $value): ?string
|
# |
protected
|
interpolateColor(string $hexFrom, string $hexTo, float $value): string
|
# |
| Methods used from Atk4\Core\AppScopeTrait |
|---|
assertInstanceOfApp(), issetApp(), getApp(), setApp() |
| Methods used from Atk4\Core\DiContainerTrait |
|---|
setDefaults(), setMissingProperty(), assertInstanceOf(), _fromSeedPrecheck(), fromSeed(), fromSeedUnsafe() |
| Methods used from Atk4\Core\InitializerTrait |
|---|
isInitialized(), assertIsInitialized(), invokeInit() |
| Methods used from Atk4\Core\TrackableTrait |
|---|
issetOwner(), setOwner(), unsetOwner(), getDesiredName(), destroy() |
| Constants inherited from Atk4\Ui\Table\Column |
|---|
|
| Properties | |||
|---|---|---|---|
public
|
float
|
$min
|
# |
public
|
float
|
$max
|
# |
public
|
array
|
$colors = ['#FF0000', '#00FF00']
|
# |
public
|
bool
|
$lessThanMinNoColor = false
|
# |
public
|
bool
|
$moreThanMaxNoColor = false
|
# |
| Properties inherited from Atk4\Ui\Table\Column |
|---|
$table, $attr, $caption, $sortable, $columnData, $hasHeaderAction, $headerActionTag |
| Properties used from Atk4\Core\AppScopeTrait |
|---|
$_app, $maxNameLength, $uniqueNameHashes |
| Properties used from Atk4\Core\InitializerTrait |
|---|
$_initialized |
| Properties used from Atk4\Core\NameTrait |
|---|
$name |
| Properties used from Atk4\Core\TrackableTrait |
|---|
$_owner, $shortName |