Git Product home page Git Product logo

Comments (9)

jmvanel avatar jmvanel commented on August 26, 2024

The label associated to each URI is shown by a HTML tag.

from semantic_forms.

sylvainlb avatar sylvainlb commented on August 26, 2024

Select2 is probably a good option.

from semantic_forms.

jmvanel avatar jmvanel commented on August 26, 2024

You mean http://select2.github.io/ ?

from semantic_forms.

sylvainlb avatar sylvainlb commented on August 26, 2024

Yes, I guess it covers the need.

from semantic_forms.

jmvanel avatar jmvanel commented on August 26, 2024

I guess Select2 could also be used for #2 ; see here :
https://github.com/jmvanel/semantic_forms/blob/master/scala/forms_play/public/javascripts/wikipedia.js#L22
( TODO populate pulldown menu )

from semantic_forms.

jmvanel avatar jmvanel commented on August 26, 2024

Wouldn't a short piece of plain JavaScript do the job of showing and complete on label, and sending URI to form ? see :
http://stackoverflow.com/questions/18464479/can-html5-datalist-differentiate-value-and-option-text

from semantic_forms.

sylvainlb avatar sylvainlb commented on August 26, 2024

Yes but it would be simpler and better made with Select2

from semantic_forms.

jmvanel avatar jmvanel commented on August 26, 2024

Currently it works with a an <input> tag and and the <datalist is updated by wikipedia.js ,
but the pulldown menu is not automatically shown .

from semantic_forms.

jmvanel avatar jmvanel commented on August 26, 2024

The /lookup service, with the completion widget in
forms_play/public/javascripts/wikipedia.js

should be used as the preferred alternative to the <select> HTML tag used currently .

from semantic_forms.

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.