The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

[CLOSED] Button UI

  1. #1

    [CLOSED] Button UI

    How can i change a button UI in javascript?

    i want to change from warning-large to success-large.

    thanks,
    /Z
    Last edited by fabricio.murta; Jun 19, 2018 at 1:16 AM.
  2. #2
    Hello @Z!

    You can use the Ext.Component.setUi() method.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    You made the same error i did which why i posted it. I camel cased it. SetUI works.
    Thxs
    /Z
  4. #4
    Hello @Z!

    You stated you wanted to do that in javascript, so I understood you wanted it client side and, client-side, the method is called setUi().

    By convention, all lowerCamelCased methods are translated into UpperCamelCased in C#, so unles in very specific and limited cases, between Ext JS client side and Ext.NET server-side naming convention for public members will be like this.

    In other words:
    Ext JS / client side / javascript: lowerCamelCase
    Ext.NET / server side / C#: UpperCamelCase

    Knowing this, it may be easier to "translate" what you read when you think either client-side or server-side when speaking about Ext.NET. :)

    Hope this helps.

    EDIT: I see, you were talking about the [b]UI[b] bit of the method not being Ui but UI (all uppercase). Microsoft has a similar rule where names with just two characters may be full upper cased, whereas others should be camel cased, as System.IO and System.Uri.
    Last edited by fabricio.murta; Jun 19, 2018 at 1:15 AM.

Similar Threads

  1. Replies: 10
    Last Post: Feb 20, 2017, 1:51 PM
  2. Replies: 8
    Last Post: Jul 16, 2014, 12:37 PM
  3. Replies: 6
    Last Post: May 15, 2013, 10:07 AM
  4. Replies: 4
    Last Post: Nov 19, 2010, 1:39 PM
  5. Replies: 3
    Last Post: Feb 02, 2010, 6:32 PM

Posting Permissions