class Content implements Renderable

Properties

protected string $title

Content title.

protected string $description

Content description.

protected Row[] $rows

Methods

__construct(Closure $callback = null)

Content constructor.

$this
title(string $title)

No description

$this
description(string $description = '')

Set description of content.

mixed
body(mixed $content)

Alias of method row.

row($content)

Add one row for content body.

view(string $view, array $data)

Render giving view as content body.

dump($var)

No description

string
build()

Build html of content.

render()

Render this content.

addRow(Row $row)

Add Row.

Details

at line 37
__construct(Closure $callback = null)

Content constructor.

Parameters

Closure $callback

at line 49
$this title(string $title)

No description

Parameters

string $title

Return Value

$this

at line 63
$this description(string $description = '')

Set description of content.

Parameters

string $description

Return Value

$this

at line 77
mixed body(mixed $content)

Alias of method row.

Parameters

mixed $content

Return Value

mixed

Exceptions

Throwable

at line 98
Content row($content)

Add one row for content body.

Parameters

$content

Return Value

Content

at line 120
Content view(string $view, array $data)

Render giving view as content body.

Parameters

string $view
array $data

Return Value

Content

at line 130
Content dump($var)

No description

Parameters

$var

Return Value

Content

at line 140
string build()

Build html of content.

Return Value

string

at line 155
render()

Render this content.

Exceptions

Throwable

at line 173
protected addRow(Row $row)

Add Row.

Parameters

Row $row