| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { formscreen } from "./formscreen.js";
- export class rents_screen extends formscreen {
- #target;
- #email;
- #phone;
- get _email() {
- return this.#email();
- }
-
- get _phone() {
- return this.#phone();
- }
- constructor(target) {
- super();
-
- this.#target = target;
- }
- get _target() {
- return this.#target;
- }
- _build_form() {
- this.#email = this._create_input(
- "email",
- "E-mail:",
- "[email protected]",
- (input) => {
- input.type = "email";
- }
- );
- this.#phone = this._create_input(
- "phone",
- "Phone number:",
- "123-456-789",
- (input) => {
- input.type = "tel";
- input.pattern = "[0-9]{3}-[0-9]{3}-[0-9]{3}";
- }
- );
- }
- }
|