Coder Social home page Coder Social logo

fece's Introduction

Front-end coding exercise

Instructions

  • Use the following data to populate a grid/table:
var people = [
	{
		id: 0,
		active: true,
		name: 'John Smith',
		age: 35,
		email: '[email protected]'
	},
	{
		id: 1,
		active: true,
		name: 'John Smith',
		age: 35,
		email: '[email protected]'
	},
	{
		id: 2,
		active: true,
		name: 'John Smith',
		age: 35,
		email: '[email protected]'
	},
	{
		id: 3,
		active: false,
		name: 'John Smith',
		age: 35,
		email: '[email protected]'
	},
]
  • The display should look like:

                                                             [New person]
    
Active Name Age Email (controls)
[*] John Smith 35 [email protected] [E] [D]
[*] Mary Jones 28 [email protected] [E] [D]
[*] Michael Miller 40 [email protected] [E] [D]
[ ] Elizabeth Johnson 32 [email protected] [E] [D]

[E] can be an icon that represents editing, and [D] can be an icon that represents deleting

  • The functionality should be as follows: The data in the grid should always reflect the data that is in the people array. It should never be out of sync. When you click the [New person] button a blank row will appear as the first item in the table/grid. Instead of an [E] button it will be a [S] save button (find an icon). When you edit a row, the [E] icon will be replaced with an [S] icon to allow you to save/sublit the new person. If you click the [D] button on any row, it will be removed from both the display and the people array.

  • Use Bootstrap, and any JavaScript libraries you feel comfortable with (bonus for using AngularJS). We are looking for ease of maintenance, clean code, and a preference in using the right libraries for the right task.

fece's People

Contributors

richmartel avatar

Watchers

James Cloos 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.