[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
HTML renderer: use different styles for links and selected links  XML
Forum Index -> Development
Author Message
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

Hello,

in htstyle.css there is a styleclass 'classlink' and 'classlink_selected'.

I thought that when I click on a link then classlink_selected is choosed for this link and when I click on antoher link then classlink is choosed again.

Is this working automaticly or do I have to set the attribute 'styleClass' within the t:htlink component manually.


Thanks,
Ralph


p.s. in the default htstyle.css in classbody there is a attribute 'backgfixgound-color:#FFFFFF;'. Is this correct?
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

no, this has nothing to do with clicking on the link.

Each component has three different styles:
. normal usage
. usage in grid row
. usage in selected grid row

That's the meaning behind...

To change the link's class while clicking: this is not implemented yet, it would require some JavaScript eventing...
Maybe you could use a htbutton instead? This has some click-rendering by browser-default.

Björn

Björn Müller, CaptainCasa GmbH
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

Hello,

so far we have just four links in our application and for that I can use my own styleclass and set this styleclass automaticly when someone clicks a link.

I just wanted to know if this is possible.


Thanks,
Ralph
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

OK! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team