Skip to content
pixi-silk
GitHub repository
Interface

IslandMenuOptions

import type { IslandMenuOptions } from 'pixi-silk/ui/island';

Options of IslandMenu.

Properties#

PropertyTypeDescriptionDefined in
accent?ColorSourceColour of switches that are on. Default 0x30d158.packages/pixi-silk/src/ui/island/menu.ts:49
itemsreadonly IslandMenuItem[]The rows, top to bottom.packages/pixi-silk/src/ui/island/menu.ts:41
label?LabelFactoryBuilds the text. Default PixiJS Text.packages/pixi-silk/src/ui/island/menu.ts:53
onSelect?(id: string) => voidCalled after a row is tapped, with its id, once a toggle or choice has changed.packages/pixi-silk/src/ui/island/menu.ts:51
rowHeight?numberRow height. Default 40.packages/pixi-silk/src/ui/island/menu.ts:47
ticker?Ticker | nullnull to step it by hand with IslandMenu.tick. Default Ticker.shared.packages/pixi-silk/src/ui/island/menu.ts:55
title?stringSmall grey heading above the rows.packages/pixi-silk/src/ui/island/menu.ts:43
width?numberWidth, local units. Default 220.packages/pixi-silk/src/ui/island/menu.ts:45