dinglingham / nova-index-textarea

扩展Nova的索引视图文本域

1.0.2 2019-02-06 17:38 UTC

This package is auto-updated.

Last update: 2024-09-06 20:58:22 UTC


README

Latest Version on Github Total Downloads Twitter Follow

Nova包,用于在索引中显示文本域内容,并有限制

安装

composer require dillingham/nova-index-textarea

使用方法

此包为现有的Textarea Nova字段添加了两个方法

use Laravel\Nova\Fields\Textarea;
Textarea::make('Description')->showOnIndex()->limit(10)

选项

limit($amount, $ending='...')

备注

添加 ->showAlways() 以关闭详细信息的切换