Comments (10)
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.
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.
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.
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.
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.
Renamed from "fields may be misleading (eventually) and perhaps a New Feature" to current
from gm_config.
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.
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.
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.
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)
- Mention of TypeScript types (@types/gm_config) HOT 9
- TypeScript Type Definitions HOT 2
- Select Multiple HOT 2
- Dynamically creating fields HOT 4
- radio onChange event HOT 1
- Capstone 4.0 HOT 5
- Display: flex ? HOT 1
- Redefine save and close buttons? HOT 3
- Calling get() before init() completes doesn't work anymore HOT 19
- `Object.create(null)` duplication HOT 2
- Strange issue with Unit Test HOT 2
- Alert Text in Unit Test HOT 9
- Hello, I need help with the UI style HOT 1
- Suggestion - add a property `initialized` (Promise object) HOT 1
- File pick implementation HOT 1
- TypeError: field is undefined HOT 1
- Resize window HOT 1
- Scaling config data
- Field value change event
- Does not appear to work with GM4 HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gm_config.