Skip to content

Instantly share code, notes, and snippets.

@a-x-
Created March 17, 2016 15:26
Show Gist options
  • Select an option

  • Save a-x-/a380c1f4d5d0dc997e7a to your computer and use it in GitHub Desktop.

Select an option

Save a-x-/a380c1f4d5d0dc997e7a to your computer and use it in GitHub Desktop.
block('viewer-controls')(
def()(function() {
return applyNext({
params: this.ctx.params
});
}),
content()(function() {
return [
{
block: 'viewer-carousel',
params: this.params,
js: { onlyPan: this.params.onlyPan }
},
this.params.customPanel,
{
elem: 'panel',
elemMods: { error: 'yes' },
content: {
elem: 'cell',
content: { elem: 'error' }
}
},
{
elem: 'panel',
elemMods: { position: 'top' },
content: [
this.params.topPaneContent,
{ elem: 'close' }
]
},
{
elem: 'panel',
elemMods: { position: 'bottom' },
content: [
{
elem: 'cell',
elemMods: { position: 'left' },
content:
{
elem: 'domain',
initialImage: this.params.initialImage
}
},
{
elem: 'cell',
elemMods: { position: 'right' },
content: [
this.params.bottomPaneContent,
{
elem: 'download',
initialImage: this.params.initialImage
}
]
}]
}
];
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment