Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.36 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.36 KB

Todo

Simple Todo App Script which you can use in any of your project!

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You need to have a ES6 Compatible Browser. In most of the cases, Google Chrome will be suitable for you.

Installing

It's really easy to install this script. Insert 3 lines of code and you're good to go!

<script src = "path/todo.js"></script>

Now, create as many task as you need.

let todos = new TodoApp(rootApp, tasks);

Now it's time to run the code:

todos.todoHandler();

Here's a quick demo:

let todos = new TodoApp(
		// Your root app where you want to render the tasks
		document.getElementById('todoLister'),
		// Tasks. Note: Tasks should be of type Array
		[
			'Get Up',
			'Brush Teeth',
			'Goto Work'
		]
	); 
todos.todoHandler();

Built With

  • ES6 - The only language used

Contributing

You can submit the pull requests to us.

Version Control

We use Git for version control.

Authors

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc