Limit On Index
limitOnIndex
Argument
Type
Required
Default
limit
int
85
By utilizing the limitOnIndex
method, you can define a maximum character limit that will be enforced when displaying the CKEditor field in the index view of your Laravel Nova resource. This is useful for providing a concise preview or summary of the content without overwhelming the view with excessive text.
use Mostafaznv\NovaCkEditor\CkEditor;
class Article extends Resource
{
public function fields(Request $request): array
{
return [
CkEditor::make(trans('Content'), 'content')
->limitOnIndex(150)
];
}
}
Last updated