shelf.js 508 B

123456789101112131415161718192021
  1. import { cx_ui } from "./cx-ui";
  2. import { dictionary } from "./dictionary";
  3. import { selector } from "./selector";
  4. import { view } from "./view";
  5. export class shelf extends view {
  6. #manager;
  7. constructor(manager) {
  8. super();
  9. this.#manager = manager;
  10. }
  11. show() {
  12. return cx_ui.push("App", () => {
  13. this.#manager.view = new selector(this.#manager);
  14. }, (button) => {
  15. button.value = new dictionary().get("selector.return");
  16. });
  17. }
  18. }