changing text color of a trigger

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

changing text color of a trigger

srikanth.prodigy

Hello All,

 

I’m trying to change the text color or image of trigger when it is clicked like in gmail there is a starred button for every email

How can we achieve this?

 

Thanks,

Srikanth A

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: changing text color of a trigger

Philip.Cantin
Srikanth,

For different colored buttons, use the style attribute of <xf:trigger>, and add some simple CSS code. For example:

    <xf:trigger style=" color: blue;
                          border-color: red;
                          border-width: 1px;
                          background-color: pink;">
      <xf:label>A Button</xf:label>
    </xf:trigger>


For images, I would imagine you would be able to do:

    <xf:trigger appearance="xf:image">
     
      <xf:label>A Button</xf:label>
    </xf:trigger>

But I tried this in Orbeon 3.7.0beta1.200808260135, and it would not let me use the 'appearance' attribute within <xf:trigger>. So I'm not sure if there's a way to do this in Orbeon yet.


Hope this helps some.


---Philip


srikanth.prodigy wrote
Hello All,

 

I'm trying to change the text color or image of trigger when it is clicked
like in gmail there is a starred button for every email

How can we achieve this?

 

Thanks,

Srikanth A

 



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: changing text color of a trigger

Philip.Cantin
Srikanth,

I'm sorry - I just realized that you were asking about changing the color/image when the button is clicked, not just changing the color/image of the button.

I don't know if <xf:trigger> supports this functionality, to be honest. In your case, I would stick with HTML's <button> tag and use the onClick attribute and some CSS to achieve the desired button click events.

This link may help a little:

http://www.codingforums.com/archive/index.php/t-22786.html




---Philip


Philip.Cantin wrote
Srikanth,

For different colored buttons, use the style attribute of <xf:trigger>, and add some simple CSS code. For example:

    <xf:trigger style=" color: blue;
                          border-color: red;
                          border-width: 1px;
                          background-color: pink;">
      <xf:label>A Button</xf:label>
    </xf:trigger>


For images, I would imagine you would be able to do:

    <xf:trigger appearance="xf:image">
     
      <xf:label>A Button</xf:label>
    </xf:trigger>

But I tried this in Orbeon 3.7.0beta1.200808260135, and it would not let me use the 'appearance' attribute within <xf:trigger>. So I'm not sure if there's a way to do this in Orbeon yet.


Hope this helps some.


---Philip


srikanth.prodigy wrote
Hello All,

 

I'm trying to change the text color or image of trigger when it is clicked
like in gmail there is a starred button for every email

How can we achieve this?

 

Thanks,

Srikanth A

 



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws