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

[Docs] - Reference or copy relevant HTML5 element and attributes relevant for Quasar component #4321

Closed
valasek opened this issue Jun 6, 2019 · 1 comment

Comments

@valasek
Copy link
Contributor

valasek commented Jun 6, 2019

First of all, thank you Quasar, it is amazing !

I had an issue with entering q-input for decimals - https://quasar.dev/vue-components/input#Input-of-number-type.

decimal

I solved it using HTML5 step attribute but had to raise a question on Discord.

<q-input :value="props.row.hours" type="number" step="0.1" dense
  @change="val => onUpdateHours({id: props.row.id, hours: val.target.value})"/>

I propose to:

  1. In section https://quasar.dev/vue-components/input#Input-of-number-type
    Add a note, that you can use additional HTML5 attributes for type number (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number).
    E.g. to enter decimals you can use step attribute and specify nin and max value.

  2. To enhance Quasar component's documentation and add, where relevant, which HTML5 attribute component is generating and if any/all HTMT5 attributes can be used and add a link to relevant MSDN sections.

This will be useful for newcomers. Feel free to close the issue if not relevant.

@valasek valasek changed the title [Docs] - Reference or copy relevant HTML5 element and attributes which can be used with a particular component [Docs] - Reference or copy relevant HTML5 element and attributes relevant for Quasar component Jun 6, 2019
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jun 6, 2019
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jun 6, 2019
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jun 7, 2019
pdanpdan added a commit to pdanpdan/quasar that referenced this issue Jun 7, 2019
rstoenescu pushed a commit that referenced this issue Jun 8, 2019
…QSelect (#4325)

* feat(docs): Add ref links for native field attributes for QInput and QSelect

ref #4321

* Update input.md

* Update select.md
@rstoenescu
Copy link
Member

Will be available in docs on next deployment.

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