Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does data data-ex-collectionID works? #115

Open
aborruso opened this issue Jul 21, 2014 · 2 comments
Open

Does data data-ex-collectionID works? #115

aborruso opened this issue Jul 21, 2014 · 2 comments

Comments

@aborruso
Copy link

Hi all,
I would likt to filter my data using data-ex-item-types.

My code is:

<div data-ex-item-types="myobj1" data-ex-role="exhibit-collection" id="myobj1-collection"></div>
  <div data-ex-item-types="myobj2" data-ex-role="exhibit-collection" id="myobj2-collection"></div>

  <div data-ex-role="exhibit-controlPanel"></div>

  <div id="test">
    <div id="name" data-ex-role="facet" data-ex-expression=".color" data-ex-collection-id="myobj1-collection"></div>
  </div>

But I have all the items and not only of myobj1 collection. Is it normal?

I'm using http://api.simile-widgets.org/exhibit/current/exhibit-api.js

Thank you

@lmorillas
Copy link

I'm having the same isssue

@camilstaps
Copy link

I had the same issue. It can be resolved by using data-ex-collection-i-d (with a hyphen in i-d). This is because ID is spelt with capitals and every capital should have a hyphen in front of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants