Coder Social home page Coder Social logo

Number widget about dkan HOT 4 OPEN

stefan-korn avatar stefan-korn commented on August 15, 2024
Number widget

from dkan.

Comments (4)

dafeder avatar dafeder commented on August 15, 2024

How would this be different from a text widget? Would we possibly have issues here with the ui options conflicting with the schema validation? Open to this just want to understand the use-case and implications better.

from dkan.

stefan-korn avatar stefan-korn commented on August 15, 2024

@dafeder : it would provide a number widget, that has some numerical validation and the "stepper". I consider this an UI improvement if you want to collect numerical input.
Regarding schema validation I am not sure: The value being saved in the json data should not differ from collecting via text widget, except that only numbers are allowed. So there should be no problem validating.
If there is also schema validation for schema.ui.json too, there might be problems. But I tested this change and did not have problems so far.

from dkan.

dafeder avatar dafeder commented on August 15, 2024

There really should be a spec for the UI schema both for validation and documentation purposes, it's a longtime todo. But yeah for now I see the value of this.

from dkan.

dafeder avatar dafeder commented on August 15, 2024

@stefan-korn I did another review of your PR on this, interested in your response and whether you have some capacity to work more on this.

from dkan.

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.