Jump to content

shadow for uniLabel


Recommended Posts

hi .. i am trying to put a shadow on a uniLabel in Webmode ..



in servermodule - customCSS i added:

.shadow {
text-shadow: 1px 1px 0px #000;

in uniLabel.caption i added:

<class="shadow">text of the label ...

but doesnt work .. :-(


does anybody know how i can do that ?    . i thin i must use ClientEvents... ExtEvents .. but don´t know what ;-)




Link to comment
Share on other sites



you can also try this


1) Add to CustomCss in servermodule : 


.x-unilabel-user {
  font:normal 11px tahoma, arial, helvetica, sans-serif;
  text-shadow: 2px 2px blue;
 2) add in Univent  OnAfterCreate  for  the unilabel component  

        unilabel1.ClientEvents -> UniEvent ->OnAfterCreate




function OnAfterCreate(sender)
  sender.cls = 'x-unilabel-user' ;


have fun !!!


Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...