You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Nick Makes <np...@yahoo.com> on 2014/08/12 14:48:49 UTC
Custom Accordion Headers
Would anyone be able to shine a little light on creating a fully customizable Accordion header?
I've managed it part ways, both by overriding the ButtonDataRenderer and by simply implementing Button.DataRenderer, however I've run into some issues.
For one, I can't even manage changing the background color of what appears in the Accordion. I tried changing my component that extended/implemented the button data, the Label I was printing, and the generic Button object handed through the render( ) method.
If there was a similar tutorial to that found for a custom TableView for Accordions, I think it would be an excellent addition to the documentation. Not everything around that render( ) method is all too clear to me. Apologies if it's a relatively simple answer.
Thanks everyone,
Nick
Sent from my iPhone
RE: Custom Accordion Headers
Posted by Roger Whitcomb <Ro...@actian.com>.
Hi Nick,
Welcome to Pivot!
Honestly, I haven't done much work with the Accordion component, but in looking through the code it appears that the appearance is entirely controlled by the header data renderer and by the "buttonBackgroundColor" and "borderColor" of the component skin. Maybe if you could provide a small sample of your code we could better understand what the difficulty is.
HTH,
~Roger
-----Original Message-----
From: Nick Makes [mailto:npm622@yahoo.com]
Sent: Tuesday, August 12, 2014 5:49 AM
To: user@pivot.apache.org
Subject: Custom Accordion Headers
Would anyone be able to shine a little light on creating a fully customizable Accordion header?
I've managed it part ways, both by overriding the ButtonDataRenderer and by simply implementing Button.DataRenderer, however I've run into some issues.
For one, I can't even manage changing the background color of what appears in the Accordion. I tried changing my component that extended/implemented the button data, the Label I was printing, and the generic Button object handed through the render( ) method.
If there was a similar tutorial to that found for a custom TableView for Accordions, I think it would be an excellent addition to the documentation. Not everything around that render( ) method is all too clear to me. Apologies if it's a relatively simple answer.
Thanks everyone,
Nick
Sent from my iPhone