Property | Type | Description | |
---|---|---|---|
$attributes | |||
$htmlWrappers | |||
$label | |||
$name | |||
$original | |||
$relation | |||
$relationColumn | |||
$sort | |||
$sortable | |||
$valueWrapper |
Method | Description | |
---|---|---|
__call ( string $method, array $arguments ) | ||
__construct ( $name, $label ) | ||
badge ( string $style = 'red' ) | Wrap value with badge. | |
button ( string $style = 'default' ) | Wrap value as a button. | |
getLabel ( ) : mixed | Get label of the column. | |
getName ( ) : mixed | Get name of this column. | |
image ( integer $width = 200, integer $height = 200 ) | Wrap value as a image. | |
label ( string $style = 'success' ) | Wrap value with label. | |
link ( $href = '', string $target = '_blank' ) | Wrap value as a link. | |
map ( $data ) | ||
progressBar ( string $style = 'primary', string $size = 'sm', integer $max = 100 ) | Wrap value as a progressbar. | |
setRelation ( $relation ) | Set relation. | |
sortable ( ) : |
Mark this column as sortable. | |
sorter ( ) : string | void | Create the column sorter. | |
value ( Closure $callable ) | Add a value wrapper. |
Method | Description | |
---|---|---|
formatLabel ( $label ) : mixed | Format label. | |
hasHtmlWrapper ( ) : boolean | If column has html wrapper. | |
hasValueWrapper ( ) : boolean | If has a value wrapper. | |
htmlWrap ( $value ) : mixed | Wrap value with wrapper. | |
htmlWrapper ( $wrapper ) | Set html wrapper. | |
isRelation ( ) : boolean | If this column is relation column. | |
isSorted ( ) : boolean | Determine if this column is currently sorted. |
protected formatLabel ( $label ) : mixed | ||
$label | ||
return | mixed |
protected hasHtmlWrapper ( ) : boolean | ||
return | boolean |
protected hasValueWrapper ( ) : boolean | ||
return | boolean |
protected isRelation ( ) : boolean | ||
return | boolean |