class NavigationDocument {
constructor(el) {
this.el = $(el);
}
get id() {
return this.el.find('[data-document-id]').data().documentId;
}
setAsHighlighted() {
this.el.find('li.al-collection-context').addClass('al-hierarchy-highlight');
}
makeCollapsible() {
this.el.find('li.al-collection-context').addClass('collapsible');
}
collapse() {
this.el.find('li.al-collection-context').addClass('collapsed');
}
render() {
return this.el.html();
}
}
/**
* Models the "Expand"/"Collapse" button, and provides an onClick event handler
* for the jQuery element
* @class
*/
class ExpandButton {
/**
* This retrieves the
elements which are hidden/rendered in response to
* clicking the