Input.js 409 B

123456789101112131415161718192021222324
  1. class Input extends UIObject
  2. {
  3. constructor(name, value = "", type = "text")
  4. {
  5. super(name);
  6. this.P5Element = createInput(value, type);
  7. this.setPosition(0, 0);
  8. this.setStyle(DEFAULT_STYLE);
  9. this.connectCallbacks();
  10. this.P5Element.input(this.onInput);
  11. }
  12. _onInput()
  13. {
  14. }
  15. onInput()
  16. {
  17. this.pandoraObject._onInput();
  18. }
  19. }