New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new param {1} to counterTemplate to show the number of characters entered on InputTextarea #4408

Closed
mertsincan opened this Issue Jan 11, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@mertsincan
Copy link
Member

mertsincan commented Jan 11, 2019

params;
{0} -> number of remaning characters
{1} -> number of characters entered

//Exp 1
<p:inputTextarea rows="5" cols="30" counter="display" maxlength="20" counterTemplate="{0} characters remaining. {1} characters written." autoResize="false" />
<br />
<h:outputText id="display" />

//Exp 2
<p:inputTextarea rows="5" cols="30" counter="display2" counterTemplate="{1} characters written." autoResize="false" />
<br />
<h:outputText id="display2" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment