Skip to content

Programmatically disable button state #92

@atmediauk

Description

@atmediauk

Hello,

Is it possible to disable button state programmatically as it looks out of place for some types of buttons.

The normal behaviour in Nova for an edit resource button or a link button is to simply load the page. With the nova-button plugin it will first show a loading/ success message and then load the page which makes the UI feel disjointed.

Is there a way to optionally disable this? For example:

Button::make('Text')->link('https://nova.laravel.com', '_self')->disableState();

or

Button::make('Text')->edit('App\Nova\User', $this->user_id)->disableState();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions