shelf.js 565 B

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