TheĀ MasterLayout class handles the desktop and taskbar states layout states. The same action that is performed via the toggle desktop home button in the top left corner after login.
Image AddedImage Added
The class can be used to get the current active Master Layout and to switch between desktop and taskbar modes.
Examples:
Code Block |
---|
title | Setting to taskbar mode example |
---|
|
akioma.MasterLayout.setMasterState("taskbar-mode"); // can also be "desktop-mode" |
Code Block |
---|
title | Master Layout toggle to desktop mode |
---|
|
akioma.MasterLayout.toggleDesktop(true); |
Code Block |
---|
const MasterState:DesktopMode = akioma.MasterLayout.getMasterState(); // can return "desktop-mode" or "taskbar-mode"
|