Table Editor to make main operation with file of table, that has delimiter - tab. Possible operation:
- upload selected file to editor
- download changed file
- browse content of table
- change content of rows in table
- change name of file with table
- sort columns of table
Start function of app, execute all main operation with file
input
pbject html object - selected file to work with
Class representing a tool Editor
name
string Name of file
Convert a file into two arrays: array of rows of the table and array of the headers of the table
file
string file of data
Returns object Object with fields: data(rows) and headers
Convert a table from html to string with tabs for saving in the file
Returns string String containing table with tabs, ready to download
Method for downloading the table
Class representing a Table
data
object Data of file
Create a header of table
array
object Array of headers of the table
Create rows of table
array
object Array of rows
Sort the table
column
int Number of column, that is sortedasc
boolean Identifier for sorting in direct or reverse order (optional, defaulttrue
)
Create a modal window
options
object Object with fields: {argForFn, defaultValue, fnForBtn, headerText, btnText}