31 lines
676 B
JavaScript
31 lines
676 B
JavaScript
OV.SidebarPanel = class extends OV.Panel
|
|
{
|
|
constructor (parentDiv)
|
|
{
|
|
super (parentDiv);
|
|
this.callbacks = null;
|
|
|
|
this.titleDiv = OV.AddDiv (this.panelDiv, 'ov_sidebar_title');
|
|
this.contentDiv = OV.AddDiv (this.panelDiv, 'ov_sidebar_content ov_thin_scrollbar');
|
|
|
|
let panelName = this.GetName ();
|
|
OV.AddDiv (this.titleDiv, 'ov_sidebar_title_text', this.GetName ());
|
|
this.titleDiv.setAttribute ('title', panelName);
|
|
}
|
|
|
|
GetName ()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
Clear ()
|
|
{
|
|
OV.ClearDomElement (this.contentDiv);
|
|
}
|
|
|
|
Init (callbacks)
|
|
{
|
|
this.callbacks = callbacks;
|
|
}
|
|
};
|