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

PanelItem

Extends:

@osjs/event-emitter~EventEmitter → PanelItem

OS.js Panel Item

See:

Constructor Summary

Public Constructor
public

constructor(core: Core, panel: Panel, options: Object)

Create panel item

Method Summary

Public Methods
public

Destroy panel item

public

init(state: Object, actions: Object): Object

Initializes panel item

public

render(name: String, children: Object[]): Node

Renders the panel item

Public Constructors

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

Create panel item

Params:

NameTypeAttributeDescription
core Core

Core reference

panel Panel

Panel reference

options Object

Options

Public Methods

public destroy() source

Destroy panel item

public init(state: Object, actions: Object): Object source

Initializes panel item

Params:

NameTypeAttributeDescription
state Object

State

actions Object

Actions

Return:

Object

Bound actions

public render(name: String, children: Object[]): Node source

Renders the panel item

Params:

NameTypeAttributeDescription
name String

The panel item virtual name

children Object[]

The panel item children

Return:

Node

A virtual node