pass placeholder attribute to et2-textbox

This commit is contained in:
ralf 2022-10-04 13:46:15 +02:00
parent caef7296ce
commit 96e2b495e1

View File

@ -326,7 +326,11 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
/**
* 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');
text.type = "text";
text.placeholder = this.placeholder;
return text;
}
}