space.js 525 B

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