class TableWidget extends Widget implements Renderable

Constants

TYPE_STATIC_TABLE

Properties

protected string $view from  Widget

Methods

mixed
render()

Render the table.

view(string $view)

Set view of widget.

from  Widget
string
formatAttributes()

Build an HTML attribute string from an array.

from  Widget
bool
isSkeleton()

是否是前端接口请求(请求架构)

from  Widget
mixed
__toString()

No description

from  Widget
string
attributeElement(string $key, string $value = null)

Build a single attribute element.

from  Widget
__construct(array $headers = [], array $rows = [])

Table constructor.

setHeaders(array $headers = [])

Set table headers.

withoutContent()

不使用容器显示

setRows(array $rows = [])

Set table rows.

Details

at line 90
mixed render()

Render the table.

Return Value

mixed

Exceptions

Throwable

in Widget at line 29
view(string $view)

Set view of widget.

Parameters

string $view

in Widget at line 39
string formatAttributes()

Build an HTML attribute string from an array.

Return Value

string

in Widget at line 56
bool isSkeleton()

是否是前端接口请求(请求架构)

Return Value

bool

in Widget at line 64
mixed __toString()

No description

Return Value

mixed

in Widget at line 77
protected string attributeElement(string $key, string $value = null)

Build a single attribute element.

Parameters

string $key
string $value

Return Value

string

at line 33
__construct(array $headers = [], array $rows = [])

Table constructor.

Parameters

array $headers
array $rows

at line 48
TableWidget setHeaders(array $headers = [])

Set table headers.

Parameters

array $headers

Return Value

TableWidget

at line 60
TableWidget withoutContent()

不使用容器显示

Return Value

TableWidget

at line 73
TableWidget setRows(array $rows = [])

Set table rows.

Parameters

array $rows

Return Value

TableWidget