Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Input docs

Oliver Günther62178248abe8
diff --git a/frontend/src/app/spot/components/text-field/text-field.component.ts b/frontend/src/app/spot/components/text-field/text-field.component.ts
index 08c1f7d874b..b4a68f7f3ad 100644
--- a/frontend/src/app/spot/components/text-field/text-field.component.ts
+++ b/frontend/src/app/spot/components/text-field/text-field.component.ts
@@ -67,9 +67,16 @@ export class SpotTextFieldComponent implements ControlValueAccessor {
*/
@Input() public value = '';
+ /**
+ * The html input (Regexp) pattern to provide hints to keyboards what layout to use
+ * and to aid in validation.
+ */
@Input() public pattern:string|undefined;
- @Input() public inputmode:string = 'text';
+ /**
+ * The html inputmode to hint virtual keyboard layouts.
+ */
+ @Input() public inputmode:'text'|'decimal'|'numeric'|'tel'|'search'|'email'|'url' = 'text';
valueChanged(value:string):void {
this.writeValue(value);