AssetsPage beta
Interface of @v12-engine/editor
ts
export interface AssetsPageWhat the Assets panel's pieces are given: the editor, the panel's model, and what is the page's to do with a file (opened, its menu, its name to edit)
Members
client
ts
client: PanelClient;The editor the panel is in
menu
ts
menu(asset: Asset): EditorMenuItem[];What else there is to do with a file: on a right click
model
ts
model: AssetsModel;What the panel shows and does (createAssetsModel)
open
ts
open(asset: Asset): void;Looks into a model in the Inspector, plays a sound, opens a picture: what Enter and a double click do
rename
ts
rename(select?: boolean): void;Its name to edit, as the menu's Rename… does; selected too, as F2 has it
renameField
ts
renameField(field: HTMLInputElement): void;The field its name is edited in, as the details draw it