laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

How to use selectable in table form

Open elihaidv opened this issue 3 years ago • 3 comments

  • Laravel Version: 8
  • PHP Version: 8
  • Laravel-admin: 1.8

Description:

I have a table form, like this:

   $form->table('membersEditor', function ($table) {
            $table->text('name');
            $table->display('phone');
            $table->display('type');
        });

The 'new' button is only add a new blank row. I would be happy if I can add new row from selectable class.

Another option is to edit selectable rows. Look at this selectable, I cant edit the field memberType:

public function make()
    {
        $this->column('name');
        $this->column('phone');

        $this->column('memberType')->editable();
    }

elihaidv avatar Jul 21 '21 15:07 elihaidv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 02 '21 01:10 stale[bot]

Read the docs again, carefully. Use of Relationship is described here: https://laravel-admin.org/docs/

masterwto avatar Feb 25 '22 12:02 masterwto

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '22 21:04 stale[bot]