[CLOSED] How to change button's UI from Java Script ?

  1. #1

    [CLOSED] How to change button's UI from Java Script ?

    Hi,

    Can I change button's UI from JavaScript ?

    http://examples.ext.net/#/Miscellaneous/UI/Button/

    For example: my button has primary UI and I would like to change it to danger.

    Thank you,
    Last edited by Daniil; Jan 18, 2015 at 5:13 PM. Reason: [CLOSED]
  2. #2
    Hi!

    You can use .setUI() method for this purpose.

    http://docs.sencha.com/extjs/5.0.1/#...t-method-setUI

    Example:
    <ext:Button runat="server" Text="Test" UI="Primary" Handler="this.setUI('danger');" />
    Last edited by Sergei; Jan 18, 2015 at 4:17 PM.
  3. #3

    Thread closed

    Works ! Thank you. I have must missed that... was working quite late last night.

Similar Threads

  1. [CLOSED] Unable to get the panels in Ext Net 3.0 DLL in Java Script
    By mohan.bizbites in forum 3.x Premium Help
    Replies: 4
    Last Post: Dec 25, 2014, 3:37 PM
  2. [CLOSED] set value of CheckColumn in java script
    By elke.schreiber in forum 2.x Premium Help
    Replies: 2
    Last Post: Jun 03, 2014, 10:31 AM
  3. [CLOSED] java script error
    By elke.schreiber in forum 2.x Premium Help
    Replies: 11
    Last Post: May 13, 2013, 3:19 PM
  4. Replies: 1
    Last Post: May 01, 2012, 10:56 AM
  5. change HyperLink NavigateUrl by Java Script
    By BLOZZY in forum 1.x Help
    Replies: 2
    Last Post: Aug 09, 2011, 12:32 PM

Posting Permissions