Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-08-13 09:19:54

River
New member
Registered: 2006-08-13
Posts: 4

Stylist: more than 1 friendly Name ?

Hi xinha-community,

how can I use more than one frindly Stylist name with the following syntax?

This works for me:
xinha_config.stylistLoadStylesheet('/mystyle.css', {'.data' : 'DATA'});

So how could I add another friendly name. For example {'.source' : 'Source'}


any idea ?
River

Offline

#2 2006-08-13 09:52:34

River
New member
Registered: 2006-08-13
Posts: 4

Re: Stylist: more than 1 friendly Name ?

Found it !

tried it already, but because of browser chache it was not reloaded.

xinha_config.stylistLoadStylesheet('/mystyle.css');
        xinha_config.stylistLoadStyles('p.data', {'p.data':'Sourcecode'});
        xinha_config.stylistLoadStyles('.header', {'.yves':'Checklist Header'});
   

River

Offline

#3 2006-08-14 05:40:44

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Stylist: more than 1 friendly Name ?

xinha_config.stylistLoadStylesheet('/mystyle.css', 
  {
    '.data' : 'DATA',
    '.otherClass' : 'Something Else'
  }
);

Standard JS inline object syntax.


James Sleeman

Offline

#4 2006-08-14 13:10:49

River
New member
Registered: 2006-08-13
Posts: 4

Re: Stylist: more than 1 friendly Name ?

Thank you gogo ! I will use it like this way.

River

Offline

Board footer

Powered by FluxBB