Skip to content
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

Inputs.text: add support for HTML size attribute #260

Open
borango opened this issue Jan 24, 2024 · 0 comments
Open

Inputs.text: add support for HTML size attribute #260

borango opened this issue Jan 24, 2024 · 0 comments

Comments

@borango
Copy link

borango commented Jan 24, 2024

For inputs of type text, with a known limited size of characters, I find it useful to restrict the width of the input via the HTML size attribute.

In the API documentation the size property is not documented and I found that it does not have any effect if I try to provide it in the constructor e.g. Inputs.text( { size:4 } ) or Inputs.text( { size:"4" } )

So I wish that Inputs.text() would pass through the optional size attribute and render it as the standard HTML attribute for the resulting <input> element, like so: <input type="text" ... size="4">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant