PHP 클래스 Encore\Admin\Grid\Column

파일 보기 프로젝트 열기: z-song/laravel-admin

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes
$htmlWrappers
$label
$name
$original
$relation
$relationColumn
$sort
$sortable
$valueWrapper

공개 메소드들

메소드 설명
__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 ( ) : Column Mark this column as sortable.
sorter ( ) : string | void Create the column sorter.
value ( Closure $callable ) Add a value wrapper.

보호된 메소드들

메소드 설명
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.

메소드 상세

__call() 공개 메소드

public __call ( string $method, array $arguments )
$method string
$arguments array

__construct() 공개 메소드

public __construct ( $name, $label )

badge() 공개 메소드

Wrap value with badge.
public badge ( string $style = 'red' )
$style string

button() 공개 메소드

Wrap value as a button.
public button ( string $style = 'default' )
$style string

formatLabel() 보호된 메소드

Format label.
protected formatLabel ( $label ) : mixed
$label
리턴 mixed

getLabel() 공개 메소드

Get label of the column.
public getLabel ( ) : mixed
리턴 mixed

getName() 공개 메소드

Get name of this column.
public getName ( ) : mixed
리턴 mixed

hasHtmlWrapper() 보호된 메소드

If column has html wrapper.
protected hasHtmlWrapper ( ) : boolean
리턴 boolean

hasValueWrapper() 보호된 메소드

If has a value wrapper.
protected hasValueWrapper ( ) : boolean
리턴 boolean

htmlWrap() 보호된 메소드

Wrap value with wrapper.
protected htmlWrap ( $value ) : mixed
$value
리턴 mixed

htmlWrapper() 보호된 메소드

Set html wrapper.
protected htmlWrapper ( $wrapper )
$wrapper

image() 공개 메소드

Wrap value as a image.
public image ( integer $width = 200, integer $height = 200 )
$width integer
$height integer

isRelation() 보호된 메소드

If this column is relation column.
protected isRelation ( ) : boolean
리턴 boolean

isSorted() 보호된 메소드

Determine if this column is currently sorted.
protected isSorted ( ) : boolean
리턴 boolean

label() 공개 메소드

Wrap value with label.
public label ( string $style = 'success' )
$style string

map() 공개 메소드

public map ( $data )

progressBar() 공개 메소드

Wrap value as a progressbar.
public progressBar ( string $style = 'primary', string $size = 'sm', integer $max = 100 )
$style string
$size string
$max integer

setRelation() 공개 메소드

Set relation.
public setRelation ( $relation )
$relation

sortable() 공개 메소드

Mark this column as sortable.
public sortable ( ) : Column
리턴 Column

sorter() 공개 메소드

Create the column sorter.
public sorter ( ) : string | void
리턴 string | void

value() 공개 메소드

Add a value wrapper.
public value ( Closure $callable )
$callable Closure

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

protected $attributes

$htmlWrappers 보호되어 있는 프로퍼티

protected $htmlWrappers

$label 보호되어 있는 프로퍼티

protected $label

$name 보호되어 있는 프로퍼티

protected $name

$original 보호되어 있는 프로퍼티

protected $original

$relation 보호되어 있는 프로퍼티

protected $relation

$relationColumn 보호되어 있는 프로퍼티

protected $relationColumn

$sort 보호되어 있는 프로퍼티

protected $sort

$sortable 보호되어 있는 프로퍼티

protected $sortable

$valueWrapper 보호되어 있는 프로퍼티

protected $valueWrapper