trait HasExport

Properties

protected string $exporter

Export driver.

Methods

bool
isShowExporter()

是否显示导出按钮

disableExporter(bool $disable = true)

Disable export.

string
renderExportButton()

Render export button.

exporter($exporter)

Set exporter driver for Grid to export.

string
getExportUrl(int $scope = 1, null $args = null)

Get the export url.

handleExportRequest(bool $forceExport = false)

Handle export request.

getExporter(string $scope)

No description

Details

at line 25
bool isShowExporter()

是否显示导出按钮

Return Value

bool

at line 36
HasExport disableExporter(bool $disable = true)

Disable export.

Parameters

bool $disable

Return Value

HasExport

at line 46
string renderExportButton()

Render export button.

Return Value

string

at line 59
HasExport exporter($exporter)

Set exporter driver for Grid to export.

Parameters

$exporter

Return Value

HasExport

at line 74
string getExportUrl(int $scope = 1, null $args = null)

Get the export url.

Parameters

int $scope
null $args

Return Value

string

at line 90
protected handleExportRequest(bool $forceExport = false)

Handle export request.

Parameters

bool $forceExport

at line 113
protected AbstractExporter getExporter(string $scope)

No description

Parameters

string $scope

Return Value

AbstractExporter