开发者

How to programmatically click on facet value to filter events on a Simile Timeline Widget?

开发者 https://www.devze.com 2023-01-30 08:56 出处:网络
I have a facet set up thus: <div ex:role=\"facet\" ex:expression=\".chapter\" ex:facetLabel=\"Chapter\" ex:sortMode=\".count\" ex:fixedOrder=\"1;2;3;4;5;6;7;8;9;10;11;12\" ></div>

I have a facet set up thus:

<div ex:role="facet" ex:expression=".chapter" ex:facetLabel="Chapter" ex:sortMode=".count" ex:fixedOrder="1;2;3;4;5;6;7;8;9;10;11;12" ></div>

It's for filtering Chapter numbers of timeline events. How would I programmatically select one of the开发者_开发问答 facet choices to filter visible timeline events? I tried simulating a click event on the anchor in the generated HTMl, and have been unable to expose anything in the API.

The end goal is to allow filtering by chapter by getting a URL param.

http://www.jamesfishwick.com/timeline/


The attribute ex:selection can be used to pre-filter items.

I was able to add the attribute (i.e. ex:selection="3") from a param with no problems.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号