PDA

View Full Version : [CLOSED] Set a message on a disabled panel mask



Fergus
Sep 02, 2013, 11:56 AM
Hi,
I am wondering if it is possible to set a message on a disabled panels mask. Quite like the loading message on a direct event mask.

I have a disabled panel and want to tell the user something like "Please select a user" on the disabled panel to enable it.

I have had a look and cannot find any way to do it.

Thanks

Fergus

Daniil
Sep 02, 2013, 2:32 PM
Hi Fergus,

Yes, you could reuse masking.

App.Panel1.body.mask("Please select a user", "no-image");


<style>
.no-image .x-mask-msg-text {
background-image: none;
}
</style>

You can stylize other things if needed.

Fergus
Sep 02, 2013, 3:34 PM
Thanks Daniil,
Thats what i was looking for.

You can mark as closed.

Fergus