Git Product home page Git Product logo

Comments (2)

ljharb avatar ljharb commented on June 16, 2024

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.

ctippur avatar ctippur commented on June 16, 2024

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

tag that could differentiate the different tables.

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)

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.