ncus/inline-index

A Laravel Nova field.

v0.0.2 2020-06-22 04:47 UTC

This package is auto-updated.

Last update: 2024-06-06 16:44:57 UTC


README

Latest Version on Packagist Total Downloads

This package allows you to update a text field or number field of a resource in the index view (inline edit).

Install

composer require ncus/inline-index

Usage

use Ncus\InlineIndex\InlineIndex;

InlineIndex::make('name')
          ->options([
              'event' => 'blur',
              'type' => 'text',
          ])->rules('required');

Note: event default keyup.enter, type default text.