Giter Club home page Giter Club logo

Comments (4)

yogender-kulshrestha avatar yogender-kulshrestha commented on September 27, 2024 1

Use this code to mask the password in your v-combobox:

    <v-combobox
      label="A Combobox with password select"
      :items="['password', '44g5$UrB', 'H7zbkKn+A;cJ_f>?rw3yM9', 'Georgia123', 'TexXas', 'Wy1oming']"
      variant="solo"
    >
      <template v-slot:selection="{item}"
        >{{'*'.repeat(String(item.value).length)}}</template
      >
    </v-combobox>

This code will display asterisks in place of the actual password value, keeping it hidden.

Working Code Link:
https://play.vuetifyjs.com/#eNplUe1KwzAUfZVLEbrp3JibiLVOpj8URRCmKGxDsvZuC6ZJSNNus/TdTfqxFvwT7j05536cO8+cWAWDqZT9NEHHc3yNkWRE42TBAfz0nEhZhEUSCK4J5agqqAKjlViJfQ0BpOeRCJHdLpwYGQYawzcSxzuhwoXTsBhZFZwpPFQVYEf1FmTFhVLclnjUjBcbzdytWW4P3PF4c3nyoe5t/HT1u/p54WfTm+D5ez25U7vR4fXa/jyiUBtKhhcjm73j/ovENvo8DEVE+cZdtlulRFHCtd1BMNH8HDc3u9demYVjJrRXDkwFN6rMjpq3Kxptlrmnbl+hRKI7M61M147l9VPCEuz2GfKN3nbz3B/UtRt94/mgMd2ARzik6WRWGQ614x5kWeVkcwawHSy9umxRsH1ai5SXbyYpWvlxoKjUBQn3UigNIa5JwjRkZbGQaNLp1hmAQp0o3uTwbxoPeMJYrybkZZAXgEn8wbGnk/cKqn2Wf6Bd3ec=

from vuetify.

canbax avatar canbax commented on September 27, 2024

I showed input element always and hide the select div. It seems OK for now

from vuetify.

KaelWD avatar KaelWD commented on September 27, 2024

None of our components have special handling for type, it's just passed through to the <input>.

from vuetify.

canbax avatar canbax commented on September 27, 2024

@yogender-kulshrestha Thank you for the suggestion but if you try to type sth into the input field when sth is already selected, it messes up, it shows both the selection <div and also the <input. Always showing only the <input element solved my issue.

Screenshot 2024-09-17 at 17 51 38

from vuetify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.