FieldContext
import type { FieldContext } from 'pixi-silk/ui/inspector';
What every field needs from the inspector around it.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
atlas? | SdfAtlas | Glyph atlas of the field text. Default the shared one. | ui/panels/fields.ts:20 |
element? | HTMLElement | The element the scene is drawn on. Text editing positions its hidden input against it. | ui/panels/fields.ts:24 |
theme | PanelTheme | Resolved panel colours, radius and font. | ui/panels/fields.ts:18 |
ticker? | Ticker | null | Ticker driving the motion. Default Ticker.shared. null for manual tick calls. | ui/panels/fields.ts:22 |
Methods#
popover()#
popover(
content: Container,
anchor: Container,
onClose: () => void
): () => void;
Opens content as a popover next to anchor. Returns the function that closes it.
Parameters#
| Parameter | Type |
|---|---|
content | Container |
anchor | Container |
onClose | () => void |
Returns#
() => void