File: src/demo.js

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Yet Another jQuery Todo List Plugin  >  src/demo.js  >  Download  
File: src/demo.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Yet Another jQuery Todo List Plugin
Show and manage tasks of a todo list on a Web page
Author: By
Last change:
Date: 1 year ago
Size: 1,031 bytes


Class file image Download
 * This file is part of the Yet Another TODO List package.
 * (c) Manolo Salsas
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.

'use strict';

(function($) {
    let mockjax = require('jquery-mockjax')($, window);

        url: "/items",
        responseText: {
            status: "success",
            items: [
                "Lorem ipsum",
                "Sed ut perspiciatis",
                "Ut enim ad minim veniam",
                "Duis aute irure dolor in reprehenderit in voluptate"

    $.getJSON("/items", (response) => {
        // Default options

        // Custom options
            defaultList: response.items,
            titleText: 'Custom TODO List',
            buttonAddText: 'Add item',
            buttonDeleteText: 'Delete selected',