fassetar / storage-tables

A lightweight Jquery plugin that creates editable date tables

Home Page:http://fassetar.github.io/storage-tables/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage Tables - Jquery Plugin

GitHub release Build Status devDependency Status

Requirements

Grunt ~0.10
Jquery ~2.00

Getting Started

$('.storage').StorageTable({
  inputBy: 'vert',
  focus: false
});

Things it does

This plugin will be attached to a element and look for any tables already inside of it. If no table inside a div not will pull in content for the table and build out that table. If a table is already provide (Pre-rendered) it will interpret that table and provide inputs for the user. Passing back and forward when need to the user for storaging data. Inspired by ng-grid and datatables.

Things it does not

  • Does not sort columns
  • Does not filter columns
  • Pagination

Template Layout

coming soon...

Notes:

http://blog.teamtreehouse.com/writing-your-own-jquery-plugins - don't need '$'. http://johnkpaul.github.io/presentations/jqcon/plugin-unit-testing/#/8

Options

  • input: [true|false] //Provides input boxes.
  • direction: [true|false] //direction in order the input will take focus, by default does vertical.
  • focus: [true|| false] //default false
  • ajax: (json/csv) I won't be doing xml.
  • orderBy: ['height'||'width'] || ['wide'||'tall']
  • rotatable: [true||false] //default:false
  • editable: [true|| false] //default true, allowing users to edit
  • deletable: [true||false] //default false
  • columns: //n+1 or provided.

API Documentation

coming soon, this will be the calls/events you can attach to.

Release History

  • 2015-02-19   v0.0.2   Filtered out function and created Alpha phase.
  • 2015-01-05   v0.0.1   Started recording history notes.

License

For more information about the license, Apache License

About

A lightweight Jquery plugin that creates editable date tables

http://fassetar.github.io/storage-tables/

License:Other


Languages

Language:JavaScript 81.2%Language:HTML 18.8%