Git Product home page Git Product logo

Comments (6)

p-sam avatar p-sam commented on July 2, 2024

You should be able to feed such properties in inputAttrs

from electron-prompt.

yafp avatar yafp commented on July 2, 2024
inputAttrs: {
                type: 'password',
                minlength: 10,

has no effect

from electron-prompt.

p-sam avatar p-sam commented on July 2, 2024

The property is set as intended, but you're expecting some kind of effect from its presence. You won't get any form validation happening simply because:

  1. the input is not in a form
  2. because of not being in a form, it's also not submitted, the value is only read and then sent via IPC

You probably want to add support for "Form Validation", right ?

from electron-prompt.

yafp avatar yafp commented on July 2, 2024

Hey,
it would be great if the input element attributes would be fully used for validation yes.
But i do understand if that's not on your todo list ;)

Best regards
yafp

from electron-prompt.

p-sam avatar p-sam commented on July 2, 2024

Feel free to reopen this and rename it into form validation or something like that, or create another issue. I haven't got around doing it as I've been mostly focused around Nintendo Switch related projects, I may take a look at it at some point

from electron-prompt.

yafp avatar yafp commented on July 2, 2024

@p-sam
i am not using this package anymore - therefor i have no more need for that function. As noone else was voting for the issue it seems like it is not really needed ;)

Greetings

from electron-prompt.

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.