-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Broadcast event in viewer #1424
Conversation
/cc @ericfs please see the implementation in the |
@dvoytenko you think we should render a different doc for contrast? |
function showContainer(id) { | ||
log('Show container: ', id); | ||
var viewerEl = document.querySelector('viewer'); | ||
viewerEl.setAttribute('data-show-container', id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we have to go through the attribute route instead of a class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for convenience. Easier to set a single value than toggle different classes on/off.
LGTM |
@erwinmombay would like a different document, but I only have :) Eventually we will just allow URLs to be passed as arguments to this sample. |
@dvoytenko LGTM |
Broadcast event in viewer
No description provided.