Giter VIP home page Giter VIP logo

Comments (10)

sizzlemctwizzle avatar sizzlemctwizzle commented on July 20, 2024

So you wish to put additional information about a field? Some sort of blurb that could clarify what that particular field does? Currently there is only "title" which attaches a tooltip to that field.

We could easily insert a textNode with some content, but we need something to call it in the JSON. How about something like "info" or "description"?

from gm_config.

Martii avatar Martii commented on July 20, 2024

What I tried in the init was this and of course it created a default form field which isn't what I wanted

"identifierName": {
  "label": 'NOTE: yadda yadda ying'
}

However the guts handle this... this could be a possibility on how to programmatically interface with it. Most likely it wouldn't create a label element but a textNode since label passes events to the successive form field.

from gm_config.

sizzlemctwizzle avatar sizzlemctwizzle commented on July 20, 2024

What are you using this for? If it isn't a field then it really shouldn't be passed as one. Fields are for data, not displaying random bits of information.

from gm_config.

Martii avatar Martii commented on July 20, 2024

I gave you an example of what I'm using it for right here.

However you want to do it is up to you... since it's in the DOM I can always add whatever I want inside it but if this is going to be a complete toolkit it should have all the basics... which includes standalone text labels.

from gm_config.

sizzlemctwizzle avatar sizzlemctwizzle commented on July 20, 2024

I guess its a good idea and its really simple to add. If you don't specify a type we'll add an empty value-less field. Makes more sense then whatever we are doing now.

from gm_config.

Martii avatar Martii commented on July 20, 2024

Renamed from "fields may be misleading (eventually) and perhaps a New Feature" to current

from gm_config.

Martii avatar Martii commented on July 20, 2024

I'm thinking that I can probably get away with the label field and using CSS to push things around now that #21 is complete and as long as the label field is always encompassed in a span tag to maintain XHTML compliance.

Closing as potentially really not necessary I think.

from gm_config.

sizzlemctwizzle avatar sizzlemctwizzle commented on July 20, 2024
Closing as potentially really not necessary I think.
I agree. I wasn't crazy about adding this since I think fields should really represent stored data. Glad there is an alternative now.

from gm_config.

Martii avatar Martii commented on July 20, 2024

Well it would be handy for beautification but I think CSS 3 might be an improvement when it's more in full force. I also still need to test if type hidden still shows the label or not too... a thought I had earlier today. :)

from gm_config.

sizzlemctwizzle avatar sizzlemctwizzle commented on July 20, 2024
I also still need to test if type hidden still shows the label or not too...
No it doesn't. See here.

from gm_config.

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.