Skip to content
On this page

Class: ActionBar

ThirdRoom.ActionBar

Represents the action bar at the bottom of the screen. Items can be set via the setItems method. You can listen for triggered actions by creating a new listener via the createListener method.

Table of contents

Constructors

Methods

Constructors

constructor

new ActionBar()

Methods

createListener

createListener(): ActionBarListener

Creates a new ActionBarListener for the action bar.

Returns

ActionBarListener

Defined in

websg.d.ts:2708


setItems

setItems(items): undefined

Replaces the items in the action bar with the given items.

Parameters

NameTypeDescription
itemsActionBarItem[]The ActionBarItems to set.

Returns

undefined

Defined in

websg.d.ts:2704