VIP Icon

vankita
Kilo Explorer

HI All,

Can anyone please help me in understanding how i can move the VIP icon to the right side of the field.

find_real_file.png

Thanks,

Ankita Verma

 

6 REPLIES 6

bernyalvarado
Mega Sage

Hi Ankita, 

 

You can do that by modifying the client script Highlight VIP Caller 

 

Thanks,

Berny

bernyalvarado
Mega Sage

Within the client script, the trick can be done in line 27 where you can modify the style behavior...

 

callerLabel.setStyle({backgroundImage: "url(images/icons/vip.gif)", backgroundRepeat: "no-repeat", backgroundPosition: bgPosition, paddingLeft: '30px' });

 

Please note you will need to use a different property than the paddingLeft.

 

Thanks,

Berny

Tushar Thakur
Kilo Contributor

Thanks bernyalvarado for the reference, just made few more changes in script and it worked perfectly. In Client Script  Highlight VIP Caller, In line 27 method bgPosition is being called, thus made changes in bgPosition values in line 25 where it is by default  bgPosition = "5% 45%"; (both values representing x and y position coordinates), you can change values as required to move VIP tag (e.g. : bgPosition = "70% 100%";). 

 

find_real_file.png

 

find_real_file.png

 

 

Hi Tushar,

May I know why we are using doctype variable? what is the exact use to check the doctype here?