class BoxWidget extends Widget implements Renderable

Constants

TYPE_STAITC_TABLE

Properties

protected string $view from  Widget
protected string $title
protected string $content
$footer
protected array $tools
protected string $script

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)

Build a single attribute element.

from  Widget
__construct(string $title = '', string $content = '')

Box constructor.

content(string $content)

Set box content.

title(string $title)

Set box title.

$this
tools($tools = [])

右上角工具栏

array
variables()

Variables in view.

Details

at line 91
mixed render()

Render box.

Return Value

mixed

Exceptions

Throwable

in Widget at line 27
view(string $view)

Set view of widget.

Parameters

string $view

in Widget at line 37
string formatAttributes()

Build an HTML attribute string from an array.

Return Value

string

in Widget at line 54
bool isSkeleton()

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

Return Value

bool

in Widget at line 62
mixed __toString()

No description

Return Value

mixed

in Widget at line 75
protected string attributeElement(string $key, string $value)

Build a single attribute element.

Parameters

string $key
string $value

Return Value

string

at line 42
__construct(string $title = '', string $content = '')

Box constructor.

Parameters

string $title
string $content

at line 61
BoxWidget content(string $content)

Set box content.

Parameters

string $content

Return Value

BoxWidget

at line 80
BoxWidget title(string $title)

Set box title.

Parameters

string $title

Return Value

BoxWidget

at line 101
$this tools($tools = [])

右上角工具栏

Parameters

$tools

Return Value

$this

at line 113
protected array variables()

Variables in view.

Return Value

array