mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
pass placeholder attribute to et2-textbox
This commit is contained in:
parent
caef7296ce
commit
96e2b495e1
@ -326,7 +326,11 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
/**
|
/**
|
||||||
* Display the calendar inline instead of revealed as needed
|
* Display the calendar inline instead of revealed as needed
|
||||||
*/
|
*/
|
||||||
inline: {type: Boolean}
|
inline: {type: Boolean},
|
||||||
|
/**
|
||||||
|
* Placeholder text for input
|
||||||
|
*/
|
||||||
|
placeholder: {type: String},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,6 +342,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
{
|
{
|
||||||
const text = <Et2Textbox>document.createElement('et2-textbox');
|
const text = <Et2Textbox>document.createElement('et2-textbox');
|
||||||
text.type = "text";
|
text.type = "text";
|
||||||
|
text.placeholder = this.placeholder;
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user