GithubHelp home page GithubHelp logo

darioajr / dynamic-form Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 70 KB

AngularJS POC that allows you to move and resize fields on the form

License: MIT License

CSS 16.01% JavaScript 40.47% HTML 43.52%
angularjs javascript jquery-ui

dynamic-form's Introduction

PoC outside of Tasy, it is not necessary to create it inside Tasy There is no restriction about Framework, you can choose that you prefer No necessity of backend actions

#Case 1 - Render a dynamic layout with drag and drop ##1 - Create a layout with the metadata information below:

{layout: [
	{key: "reportname", type: "label", x: 10, y: 10, width: 300},
	{key: "entityname", type: "label", x: 350, y: 10, width: 500},
	{key: "balance", type: "textbox", label: "Balance", mask: "currency", x: 10, y: 80},
	{key: "medications", type: "grid", columns: [
		{key: "medication", label: "Medication", order: 1, width: 400},
		{key: "balance", label: "Balance", order: 2, width: 100}
	]}
]}

##2 - Must be possible to change the width and height of the components through the interface (drag and drop).

##3 - Must be possible to save the changed structure, expected output is similar to the step 1.

#Case 2 ##1 - With the structure of the case 1, load the data and keep possible to change/save the layout

	reportname: "Report 1",
	entityname: "Philips Hospital",
	balance: 5000,
	medications: [
		{medication: "AAS", balance: 300},
		{medication: "Aspirine", balance: 100}
	]
}}

#To run:

npx http-server

dynamic-form's People

Contributors

darioajr 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.