Giter Site home page Giter Site logo

formbuilder's Introduction

FormBuilder (pre-alpha)

Build html forms from JSON for Javascript, Node.js, PHP(Smarty,Twig), Ruby

Main terms:

  • Form builds from rows.
  • Row has a label(single), controls(multiple) and messages(multiple). Row essences(label, controls, messages) render is the same order.
  • Label is HTML container with label or span with text content
  • Controls is HTML container has separate controls or single control inside
  • Control is HTML container with form control (input, textarea, select, button) inside
  • Messages is HTML container with some messages or single message inside
  • Message is HTML container with message text content inside
  • Form, rows, label, control(s), message can have an options like:
    • name (logical name for essence, control has the same name attribute, essence has a className with name)
    • id (id attribute)
    • classNames (extended classNames)
    • value (for control)
    • attributes (other attributes, data and etc)
    • before (string content for rendering before essence)
    • after (string content for rendering after essence)
    • hidden (hide HTML container by setting style "display: none")
    • norender (if true essence don't render)
    • state (state of essence, essence has a className with state)
    • validState (means valid state of essence, essence has a className %essence%-valid)
    • invalidState (means invalid state of essence, essence has a className %essence%-invalid)
    • wrapper (extended HTML container, has an all before written options)
  • Wrapper render outside the essence
  • After and before content render inside its container

formbuilder's People

Contributors

frontenddeveloping avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.