On 4/13/2011 6:14 AM, jqueryui-vienna wrote:
This sounds like a solution... But can I set the ex:collapsed property
during runtime (i.e. after Exhibit initialized)? If so, how can i
trigger an update of the facets programmatically?
There's also an ex:collapsible attribute (I think) which gets set
automatically of you use ex:collapsed; it produces an expand/collapse
toggle that, presumably, is bound to javascript functions you could call
programmatically.
Am I forced to initialize an Exhibit when the web page is loaded or is
there a possibility to intialize it later (i.e. by clicking a button)?
yes, there is a standard way to do this. You add autoCreate=false as a
parameter in the exhibit-api.js script url. after that you can
initialize exhibit programmatically (you can see this in
http://trunk.simile-widgets.org/exhibit/api/scripts/create.js):
var fDone = function() {
window.exhibit = Exhibit.create();
window.exhibit.configureFromDOM();
};
window.database = Exhibit.Database.create();
window.database.loadDataLinks(fDone);
Franz
On 13 Apr., 11:48, David Karger<[email protected]> wrote:
It may not do everything you want but it is possible to set certain
facets to be collapsed---I think ex:collapsed=true/false is the proper
attribute. As a side benefit, collapsed facets do not update when you
make other facet selections, so exhibit will be faster.
On 4/13/2011 3:36 AM, jqueryui-vienna wrote:
Hi,
I've just explored the possibilities of Exhibit and can't wait to try
Exhibit 3... One question though: how can I implement a "Meta-Facet"
that selectively shows/hides other facets? In my project I've
configured 10+ facets and my UI looks quite cluttered now.
The user should be able to turn on the facets he is interesting in, if
he turns off a facet with filtering enabled, this particular filter
should also be resetted.
BTW, are there any examples that control Exhibit via its Javascript
API instead of markup annotations? I really like the markup-driven
approach, but for more complex scenarios it feels a bit limited.
regards,
Franz
--
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.