forked from MapComplete/MapComplete
Improvements to notes layer and elements
This commit is contained in:
parent
9008e333ac
commit
d7df6a7a80
14 changed files with 185 additions and 38 deletions
|
@ -13,7 +13,7 @@ export class TextField extends InputElement<string> {
|
|||
constructor(options?: {
|
||||
placeholder?: string | BaseUIElement,
|
||||
value?: UIEventSource<string>,
|
||||
htmlType?: string,
|
||||
htmlType?: "area" | "field",
|
||||
inputMode?: string,
|
||||
label?: BaseUIElement,
|
||||
textAreaRows?: number,
|
||||
|
|
|
@ -98,11 +98,13 @@ export class TextFieldDef {
|
|||
} else {
|
||||
options["isValid"] = str => self.isValid(str, options.country);
|
||||
}
|
||||
options["cssText"] = "width: 100%;"
|
||||
|
||||
|
||||
options["inputMode"] = this.inputmode;
|
||||
if (this.inputmode === "text") {
|
||||
options["htmlType"] = "area"
|
||||
options["textAreaRows"] = 4
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue