Kyle,
That's a great solution. Many folks aren't comfortable with customizing the
Javascript, but glad to see you go diving right in. For non-JS savvy folks, the
CSS option will work for them.
--Mike
On Mar 28, 2012, at 2:29 PM, Kyle Hayes wrote:
> Ok, I implemented the method you mentioned and it seems to have worked
> beautifully. Instead of specifying the layout outside of the core classes, I
> extended the default theme class to include an ether.interval.label.show
> property which defaults to true:
> this.ether = {
> backgroundColors: [
> // "#EEE",
> // "#DDD",
> // "#CCC",
> // "#AAA"
> ],
> // highlightColor: "white",
> highlightOpacity: 50,
> interval: {
> line: {
> show: true,
> opacity: 25
> // color: "#aaa",
> },
> label: {
> show: true
> },
>
> And then inside the GregorianEtherPainter initialize method I added the
> following:
>
> var showLabel = ("showLabel" in this._params) ? this._params.showLabel :
> this._theme.ether.interval.label.show;
>
> var MarkerLayout = showLabel ? Timeline.EtherIntervalMarkerLayout :
> Timeline.NoLabelMarkerLayout;
>
> this._intervalMarkerLayout = new MarkerLayout(
> this._timeline, this._band, this._theme, align, showLine);
>
> Cheers,
> Kyle
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.