class BoxWidget extends Widget implements Renderable

Constants

TYPE_STATIC_TABLE

Properties

protected string $view from  Widget
protected string $title
protected string $content
$footer
protected Operations $tools

Methods

mixed
render()

Render box.

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(string $title = '', string $content = '')

Box constructor.

content(string|Renderable $content)

Set box content.

title(string $title)

Set box title.

tools(Closure $closure = null)

右上角工具栏

array
variables()

Variables in view.

Details

at line 89
mixed render()

Render box.

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 39
__construct(string $title = '', string $content = '')

Box constructor.

Parameters

string $title
string $content

at line 60
BoxWidget content(string|Renderable $content)

Set box content.

Parameters

string|Renderable $content

Return Value

BoxWidget

at line 79
BoxWidget title(string $title)

Set box title.

Parameters

string $title

Return Value

BoxWidget

at line 98
BoxWidget tools(Closure $closure = null)

右上角工具栏

Parameters

Closure $closure

Return Value

BoxWidget

at line 111
protected array variables()

Variables in view.

Return Value

array