src/Helpers/UI/AbstractClickable.php
public function setDisabled($disabled)
    {
        $this->disabled = (bool) $disabled;

        if ($this->disabled) {
            $this->attributes = $this->attributes->reject(function ($value, $key) {
                return Str::startsWith($key, ['data-']);
            });
        }

        return $this;
    }
public function setDisabled($disabled)
    {
        $this->disabled = (bool) $disabled;

        if ($this->disabled) {
            $this->attributes = $this->attributes->reject(function ($value, $key) {
                return Str::startsWith($key, ['data-']);
            });
        }

        return $this;
    }
public function setDisabled ( $ disabled ) { $ this -> disabled = ( bool ) $ disabled ; if ( $ this -> disabled ) { $ this -> attributes = $ this -> attributes -> reject ( function ( $ value , $ key ) { return Str :: startsWith ( $ key , [ 'data-' ] ) ; } ) ; } return $ this ; }
Set disabled state.

@param  bool  $disabled

@return $this
Set disabled state .