GridWidget
final class GridWidget extends GridPlugin
Grid 插件
Traits
PoppyTrait
Properties
protected FilterPlugin | $filter | from GridPlugin | |
protected TablePlugin | $table | 列组件 | from GridPlugin |
protected Interactions | $quick | 右上角快捷操作 | from GridPlugin |
protected Interactions | $batch | 左下角快捷操作 | from GridPlugin |
string read-only | $title | 标题 | from GridPlugin |
protected Query | $query | 列表模型实例 | |
protected string | $exporter | Export driver. |
Methods
setLists(string $grid_class)
No description
JsonResponse|RedirectResponse|Response
resp()
返回相应
exporter($exporter)
设置 Grid 的导出方式, 支持 csv, excel , 并可以通过 Extend 进行自定义
array
structPk()
获取PK
getExporter(string $scope)
No description
Details
in
PoppyTrait at line 41
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 50
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 60
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 70
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 79
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 88
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 97
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 106
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 115
protected Request
pyRequest()
get request
in
PoppyTrait at line 125
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 134
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 144
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 154
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 164
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 174
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 184
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 195
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 209
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 218
protected Factory
pyView()
get view
in
PoppyTrait at line 227
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 236
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 245
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 254
protected Yaml
pyYaml()
Yaml Parser
in
UseQuery at line 16
protected bool
queryHas(string $query, string $type)
检测查询类型是否存在
in
UseQuery at line 31
protected string
queryAfter(string $query, string $type)
检测查询类型是否存在
at line 44
__construct(Model|Eloquent|Query|string $model)
Create a new grid instance.
in
GridPlugin at line 65
GridPlugin
table(Closure $cb)
No description
in
GridPlugin at line 71
GridPlugin
batch(Closure $cb)
No description
in
GridPlugin at line 77
GridPlugin
quick(Closure $cb)
No description
in
GridPlugin at line 83
GridPlugin
filter(Closure $cb)
No description
in
GridPlugin at line 95
GridPlugin
setTitle(string $title)
设置标题
in
GridPlugin at line 101
__get($attr)
No description
in
GridPlugin at line 107
protected array
structQuery()
No description
in
GridPlugin at line 140
protected array
structFilter()
No description
in
GridPlugin at line 154
protected array
structData(Collection $collection, int $total)
填充结构化的数据
at line 54
Query
model()
获取模型
at line 63
GridWidget
setLists(string $grid_class)
No description
at line 94
JsonResponse|RedirectResponse|Response
resp()
返回相应
at line 128
GridWidget
exporter($exporter)
设置 Grid 的导出方式, 支持 csv, excel , 并可以通过 Extend 进行自定义
at line 138
protected array
structPk()
获取PK
at line 149
protected AbstractExporter
getExporter(string $scope)
No description