Home Reference Source
import Panel from '@osjs/panels/src/panel.js'
public class | source

Panel

Extends:

@osjs/event-emitter~EventEmitter → Panel

Base Panel Class

Constructor Summary

Public Constructor
public

constructor(core: Core, options: Object)

Create panel

Method Summary

Public Methods
public

Add an item to the panel

public

Destroys the panel

public

init()

Initializes the panel

Public Constructors

public constructor(core: Core, options: Object) source

Create panel

Params:

NameTypeAttributeDescription
core Core

Core reference

options Object

Options

Public Methods

public addItem(item: PanelItem) source

Add an item to the panel

Params:

NameTypeAttributeDescription
item PanelItem

The panel item instance

public destroy() source

Destroys the panel

public init() source

Initializes the panel