Column
class Column
Class Column.
Traits
Constants
| NAME_SELECTOR | 
                     
  | 
            
| NAME_ACTION | 
                     
  | 
            
Properties
| Filter | $filter | from HasHeader | |
| protected array | $headers | from HasHeader | |
| static array | $displayers | Displayer for grid column.  | 
                |
| static array | $defined | Defined columns.  | 
                |
| static protected Collection | $originalGridModels | Original grid data.  | 
                |
| static protected array | $htmlAttributes | ||
| static protected array | $rowAttributes | ||
| static protected Model | $model | ||
| protected Grid | $grid | ||
| string | $name | ||
| string | $label | ||
| string | $template | ||
| string | $original | ||
| protected array | $attributes | Attributes of column.  | 
                |
| protected bool|string | $relation | Relation name.  | 
                |
| protected string | $relationColumn | Relation column.  | 
                |
| protected | $displayCallbacks | ||
| string | $sortable | ||
| protected bool | $searchable | ||
| string | $style | ||
| string | $width | ||
| string | $fixed | ||
| string | $editable | 
Methods
No description
No description
No description
Set model for column.
No description
No description
Set column filter.
Set column as searchable.
Display using display abstract.
Render this column with the given view.
Add column to total-row.
Display field as a loading icon.
Return a human readable format time.
Display column as boolean , ✓ for true, and ✗ for false.
No description
Fill all data to every column.
Passes through all unknown calls to builtin displayer or supported displayer.
获取类属性
Extend column displayer.
Define a column globally.
设置列的原始数据
Get column attributes.
Set relation.
If this column is relation column.
If has display callbacks.
Call all of the "display" callbacks column.
If current column is a defined column.
Use a defined column.
Convert characters to HTML entities recursively.
Find a displayer to display column.
Call Illuminate/Support displayer.
Call Builtin displayer.
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
        in 
HasHeader at line 28
                            $this
    addHeader(string|Renderable|Htmlable $header)
        
    
    Add contents to column header.
        in 
HasHeader at line 44
                            
    bindFilterQuery(Model $model)
        
    
    Add a binding based on filter to the model query.
        in 
HasHeader at line 56
                            string
    renderHeader()
        
    
    Render Column header.
        in 
HasHeader at line 71
                            
    getHeader()
        
    
    No description
        in 
HasHeader at line 81
                    protected        $this
    addFilter($type = null, $formal = null)
        
    
    Add a filter to column header.
        at line 213
                            
    __construct(string $name, string $label = '')
        
    
    No description
        at line 224
                            
    setGrid(Grid $grid)
        
    
    Set grid instance for column.
        at line 231
                            Column
    editable()
        
    
    No description
        at line 238
                            Column
    disableEscape()
        
    
    No description
        at line 244
                            Column
    enableEscape()
        
    
    No description
        at line 256
                            
    setModel($model)
        
    
    Set model for column.
        at line 270
                            Column
    style(string $style = '')
        
    
    Set style of this column.
        at line 276
                            Column
    template(string $tmpl = '')
        
    
    No description
        at line 288
                            Column
    width(string|int $width, bool $min = false)
        
    
    Set the width of column.
        at line 296
                            Column
    widthAsId()
        
    
    No description
        at line 301
                            Column
    widthAsIp()
        
    
    No description
        at line 306
                            Column
    widthAsDatetime()
        
    
    No description
        at line 311
                            Column
    widthAsNote()
        
    
    No description
        at line 320
                            Column
    sortable()
        
    
    标识列为可排序
        at line 331
                            Column
    fixed(string $position = 'right')
        
    
    标识列为可fix 显示
        at line 344
                            $this
    filter(null $builder = null)
        
    
    Set column filter.
        at line 355
                            $this
    searchable()
        
    
    Set column as searchable.
        at line 378
                            
    bindSearchQuery(Model $model)
        
    
    Bind search query to grid model.
        at line 394
                            $this
    display(Closure $callback)
        
    
    Add a display callback.
        at line 409
                            $this
    displayUsing(string $abstract, array $arguments = [])
        
    
    Display using display abstract.
        at line 429
                            Column
    using(array $values, string $default = '')
        
    
    替换输出, 并指定默认值, 可以用于状态值替换, 使用KV
        at line 447
                            $this
    view(string $view)
        
    
    Render this column with the given view.
        at line 460
                            Column
    hide()
        
    
    当前列存在, 但是数据暂时隐藏掉
        at line 473
                            $this
    totalRow(null $display = null)
        
    
    Add column to total-row.
        at line 485
                            Column
    filesize()
        
    
    Convert file size to a human-readable format like 100mb.
        at line 497
                            Column
    gravatar(int $size = 25)
        
    
    使用 gravatar 来显示头像图
        at line 517
                            $this
    loading(array $values = [], array $others = [])
        
    
    Display field as a loading icon.
        at line 534
                            Column
    diffForHumans(null $locale = null)
        
    
    Return a human readable format time.
        at line 552
                            Column
    date(string $format)
        
    
    Returns a string formatted according to the given format string.
        at line 567
                            Column
    bool(array $map = [], bool $default = false)
        
    
    Display column as boolean , ✓ for true, and ✗ for false.
        at line 583
                            Column
    action(string $action)
        
    
    Display column using a grid row action.
        at line 611
                            Column
    dot(array $options = [], string $default = '')
        
    
    Add a dot before column text.
        at line 625
                            array
    lay()
        
    
    No description
        at line 662
                            mixed
    fill(array $data)
        
    
    Fill all data to every column.
        at line 694
                            $this
    __call(string $method, array $arguments)
        
    
    Passes through all unknown calls to builtin displayer or supported displayer.
Allow fluent calls on the Column object.
        at line 712
                            string
    __get(string $key)
        
    
    获取类属性
        at line 723
                static            
    extend($name, $displayer)
        
    
    Extend column displayer.
        at line 734
                static            
    define(string $name, mixed $definition)
        
    
    Define a column globally.
        at line 744
                static            
    setOriginalGridModels(Collection $collection)
        
    
    设置列的原始数据
        at line 756
                static            mixed
    getAttributes(string $name, $key = null)
        
    
    Get column attributes.
        at line 777
                            $this
    setRelation(string $relation, string $relationColumn = null)
        
    
    Set relation.
        at line 790
                    protected        bool
    isRelation()
        
    
    If this column is relation column.
        at line 800
                    protected        bool
    hasDisplayCallbacks()
        
    
    If has display callbacks.
        at line 813
                    protected        mixed
    callDisplayCallbacks(mixed $value, int $key)
        
    
    Call all of the "display" callbacks column.
        at line 840
                    protected        Closure
    bindOriginalRowModel(Closure $callback, int $key)
        
    
    Set original grid data to column.
        at line 852
                    protected        bool
    isDefinedColumn()
        
    
    If current column is a defined column.
        at line 862
                    protected        
    useDefinedColumn()
        
    
    Use a defined column.
        at line 896
                    protected        array|string
    htmlEntityEncode(array|string $item)
        
    
    Convert characters to HTML entities recursively.
        at line 918
                    protected        Column
    resolveDisplayer(string $method, array $arguments)
        
    
    Find a displayer to display column.
        at line 933
                    protected        Column
    callSupportDisplayer(string $method, array $arguments)
        
    
    Call Illuminate/Support displayer.
        at line 956
                    protected        Column
    callBuiltinDisplayer(string $abstract, array $arguments)
        
    
    Call Builtin displayer.
        at line 53
                            $this
    switch() $$states = [])
        
    
    No description
        at line 53
                            $this
    image(mixed $width, mixed $height)
        
    
    No description
        at line 53
                            $this
    link(mixed $href, mixed $target)
        
    
    No description
        at line 53
                            $this
    progress(mixed $style, mixed $size, mixed $max)
        
    
    No description
        at line 53
                            $this
    downloadable(mixed $server)
        
    
    No description
        at line 53
                            $this
    copyable()
        
    
    No description
        at line 53
                            $this
    qrcode(mixed $formatter, mixed $width, mixed $height)
        
    
    No description
        at line 53
                            $this
    prefix(mixed $prefix, mixed $delimiter)
        
    
    No description
        at line 53
                            $this
    suffix(mixed $suffix, mixed $delimiter)
        
    
    No description