dillingham / nova-button

Add buttons on Nova index, detail and lens views.
MIT License
265 stars 33 forks source link

Create link in resource table row #67

Closed Paulsky closed 3 years ago

Paulsky commented 4 years ago

Thank you for this package!

The only thing I want to accomplish, is a link in my resource table, which looks exactly the same as the other actions (I really don't understand why this is so hard to do in Nova https://github.com/laravel/nova-issues/issues/786). I don't need callbacks, success messages, error messages or loading messages. Just a link that has the same design and size as the other default actions. Could you please help me out?

Button::make('Just a link')
            ->style('primary')
            ->loadingStyle('primary')
            ->successStyle('primary')
            ->loadingText('Just a link')
            ->successText('Just a link')
            ->link('/my-custom-route/myCustomId', '_self')
            ->onlyOnIndex();

just-a-link

camaech commented 4 years ago

Button::make($this->project->company->name)->detail('App\Nova\Company', $this->project->company->id),

dillingham commented 3 years ago

There is a "link" style. "Primary" looks like a button.