Coder Social home page Coder Social logo

atable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

festercluck

atable's Issues

Speed up rendering of large amounts of rows

Adding the dataset to the backbone collection takes a substantial amount of time when number of rows reaches the hundreds of thousands. Look into changing the rows collection from a backbone collection into a custom object.

Support IE < 10

Implement a workaround for the lack of Blob support, and then tackle any other issues that arise during testing in IE.

Implement filter method

Provide a filter(colName, str) method, causing the table to display only rows which contain the text str in the specified column.

Prevent columns from being dragged onto foreign atables

Multiple atables on a page can result in columns being moved to other atables. This should be prevented by stamping a table identifier on the column during the dragStart event, and checking it against the target table before attempting a move operation.

Key ColumnCollection by name attribute

Set the idAttribute of the ColumnCollection to Column.name to allow constant time access to columns by their name. Remove the unnecessary columnsByName hash.

Fix resizing of columns in a table with invisible column(s)

When columns are hidden, the column header's cellIndex property may not match up with its index in atable.columns. Store a column's name in the DOM element so that it can be used to retrieve the correct column regardless of its position in the DOM.

Implement dynamic data sources

Allow the user to provide fetchData functions that return data an arbitrary number of times (possible indefinitely). The table should either completely refresh or append the new rows, based on a boolean parameters.

Expose public API methods

Allow users to resize, reorder, add, remove, and rename columns and sort the table programmatically.

Add an export function

Implement exportJson() and exportArray() which will return the data in the table as an array of objects or an array of arrays.

Provide event hooks

Allow the user to pass in callbacks to be executed upon events:

  • Add/remove column
  • Move column
  • Resize column
  • Sort

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.