Jump to content

Button disabled attribute


rick
 Share

Recommended Posts

  • 2 years later...
On 12/21/2017 at 5:38 PM, flydev ?? said:

Just add the disabled attribute to the button :


$f = $this->modules->get('InputfieldButton');
$f->attr('disabled', 'disabled');

To also give it a visual representation you can additionally add:

$f->addClass('ui-state-disabled');

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...