You found a bug! We've classified it as EXTGWT-2083 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default How to use the Loading Mask for normal Components?

    How to use the Loading Mask for normal Components?


    In GXT 2.2.5, to show the little loading graphic in the mask message area, I could do something like this:

    Code:
    comp.mask("Loading...", "x-mask-loading")
    I cannot figure out how to accomplish this in GXT 3. I see an interface called Mask, but it's not documented and I don't know what it does. Can someone give me a hint on how to create a mask that shows the loading graphic in GXT 3? Thanks.

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    GXT 3 still has a mask method on the Component level. Only the second argument is not longer availalble. What problem do you have exactly with this method?

  3. #3
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default


    I can show the basic mask without the loading graphic (as in the Grid component), but I cannot override the style to show the loading graphic for an arbitrary component since the extra argument for style is missing. I'd like to mask any component and have it show the loading graphic.

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Moving this thread to the bugs forum.

    We should add another API for this as it was possible in GXT2 very easily.

  5. #5
    Sencha User abshnasko's Avatar
    Join Date
    Sep 2011
    Posts
    44
    Vote Rating
    0
    abshnasko is on a distinguished road

      0  

    Default


    Sounds good, thanks. Even better would be to simply have a "loadingMask" method.

  6. #6
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    A loadingMask mathod does not fully fit into the hole API. It should be another appearance.

  7. #7
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Thanks for bringing up this use case. I've filed a ticket against the team to discuss the API for making this use case possible.

  8. #8
    Ext GWT Premium Member
    Join Date
    Dec 2010
    Location
    New York, NY
    Posts
    116
    Vote Rating
    0
    amit.vankadia is on a distinguished road

      0  

    Default


    Any update on this issue. I wanted to add a loading mask on text field. I have managed to make change and add loading icon.

    What I want is separate loading mask per component. For Grid default is fine but for text field it is too big. There are no way to separate an UI.

Thread Participants: 3

Tags for this Thread