Njörðr is a GUI for browsing Skaði – Fotoweb API adapter.
Include the plugin in a script
tag.
<script type="text/javascript" src="/path/to/fotoweb/plugin.js"></script>
The plugin will be available as a global fotoweb
object.jk
fotoweb.open(options, callback);
- boolean
multiselect
- Allow the user be to select multiple photos before .closing the popup (default:false
) - string
apiUrl
- Full URL to API. No trailing slash. - string[]
hiddenArchives
– Names of archives to hide from the user. - string[]
promotedArchives
– Names of archives that are more important to the user. The first one will be opened by default. All of them will be in the top of the list of archives in the nav bar.
function callback(selected) {
console.log('Look what I got!', selected);
}
Function that will be called when photo selection is confirmed in popup.
- object
selected
Returns a single object if optionmultiselect
isfalse
. - object[]
selected
Returns an array of objects if optionmultiselect
istrue
.