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

Ability to set a data attribute on data input component #53

Closed
jfrag opened this issue Apr 21, 2021 · 2 comments
Closed

Ability to set a data attribute on data input component #53

jfrag opened this issue Apr 21, 2021 · 2 comments

Comments

@jfrag
Copy link
Contributor

jfrag commented Apr 21, 2021

Hi,

it is possible to add the possibility to set a data attr to any data input ui-textfield, ui-select and others ?

something like <ui-textfield input-data-old-val="foo"><ui-textfield>

Thanks for your hard work !

@elf-mouse
Copy link
Member

elf-mouse commented Apr 22, 2021

You could use attrs prop for the native input attributes, like this:

<ui-textfield :attrs="{ 'data-old-val': foo }"></ui-textfield>

<ui-checkbox>, <ui-radio>, <ui-switch> also have attrs prop, but <ui-select> do not have it

@jfrag
Copy link
Contributor Author

jfrag commented Apr 22, 2021

Ah ok !

Thank you

@jfrag jfrag closed this as completed Apr 22, 2021
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

2 participants