John Callahan wrote:
> I was looking to use a date-range slider facet in Exhibit.  I know 
> date-range() returns a numeric value, and the slider facet requires a 
> numeric input.  However, I tried the following that didn't work:
>
> <div ex:role="facet" ex:expression="date-range(.startDate, now(), 
> 'day')" ex:facetClass="Slider" ex:horizontal="false" ex:precision="7" 
> ex:facetLabel="Time Ago"></div>
>
> Error Message:
> Details: TypeError: E is Null
>
> It's not hard to turn this into a list facet. Or even write a function 
> that converts the output of date-range into some summary value, e.g., if 
> (startDate - now() < 31, then return "New" else return "Old")
>
>
> But I do like the slider UI.  Any ideas how we can create a slider date 
> range facet without developing a new widget?   Can the slider facet runs 
> off of dynamically generated data?
>   
The slider facet was modeled after an early version of the list facet, 
which only took path expressions in the form of

    .foo.bar.baz

rather than full expressions, like what you mentioned. More things to 
fix! :)

David


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to