Comments (2)
In case you're unaware, "==" and "!=" do type coercion - I strongly recommend "===" and "!==".
I'm not sure what the line "jsonObject[renderer]" does - you don't have to declare object properties, so in fact that line is a noop.
Also, I'm not sure what myRenderers is, and what the "div" function does.
At any rate, once you've got the <form> generated, generating the HTML on your page is beyond the scope of this module.
from forms.
Jordan -
Thanks a lot for the reply.
I have declared jsonObject at the beginning and I populate that object with form elements as I parse the database output.
I am looping to get the table names and for each table name, I am finding the structure (columns) and depending on the column type, I change the form element and populate the object.
For now, I get a form that has elements from all the tables. I would like to put in a div to distinguish between each table.
I did not understand how to really use renderer.
I see this in the document and I dont know if i can create a renderer object, would it be possible to force a
Renderers
* div
* p
* li
* table
Appreciate your input.
- Shekar
From: Jordan Harband [email protected]
To: caolan/forms [email protected]
Cc: ctippur [email protected]
Sent: Sunday, August 26, 2012 11:06 PM
Subject: Re: [forms] Adding div tag to form (#33)
In case you're unaware, "==" and "!=" do type coercion - I strongly recommend "===" and "!==".
I'm not sure what the line "jsonObject[renderer]" does - you don't have to declare object properties, so in fact that line is a noop.
Also, I'm not sure what myRenderers is, and what the "div" function does.
At any rate, once you've got the
generated, generating the HTML on your page is beyond the scope of this module.
—
Reply to this email directly or view it on GitHub.
from forms.
Related Issues (20)
- Browser bundle is very large HOT 7
- Bound form does not have form.handle HOT 3
- Tags are not properly accessible through forms HOT 8
- Is it possible to add an HTML markup element? HOT 2
- How to create a form with an array of inputs HOT 4
- Wrong POST for multipleCheckbox? HOT 3
- Promise / async/await support HOT 12
- "Placeholder" attribute for text-based inputs HOT 5
- Use WHATWG URL for url and email validation HOT 10
- Form with only boolean fields does not validate successfully HOT 2
- simple checkbox HOT 1
- build broken due to ecstatic? HOT 3
- npm audit issue associated with async lib <= 2.6.2 HOT 1
- Nested forms drawn field by field lose their full names HOT 3
- Disabled attribute HOT 1
- Strange solutions HOT 2
- Add a Promise API side-by-side with the callback API of .validate() HOT 2
- GHSL-2020-356: seeking security contact for your project HOT 2
- Caolan form missing datetimelocal
- Cut a new release? HOT 2
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 forms.