{"id":15570476,"url":"https://github.com/cipherboy/jtable","last_synced_at":"2025-03-29T06:13:40.095Z","repository":{"id":9248425,"uuid":"11070610","full_name":"cipherboy/jTable","owner":"cipherboy","description":"A basic table library with HTML5 Canvas support","archived":false,"fork":false,"pushed_at":"2014-12-14T16:38:51.000Z","size":137,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-03T18:07:40.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cipherboy.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-30T13:26:41.000Z","updated_at":"2019-07-27T07:12:30.000Z","dependencies_parsed_at":"2022-09-02T08:23:07.483Z","dependency_job_id":null,"html_url":"https://github.com/cipherboy/jTable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherboy%2FjTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherboy%2FjTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherboy%2FjTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cipherboy%2FjTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cipherboy","download_url":"https://codeload.github.com/cipherboy/jTable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145093,"owners_count":20730495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T17:42:28.019Z","updated_at":"2025-03-29T06:13:40.074Z","avatar_url":"https://github.com/cipherboy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jTable v1.3 - A HTML5/jQuery Table library with Canvas support\n * Depends: jQuery \u003e= v1.5 ; could be replaced if needed\n * Depends: jCavnas v2.0 ; canvas support, optional if not using canvases\n * Depends: jSuggest.js v0.8 ; Suggested text support\n\nCopyright (C) 2012, 2013, 2014 Alex Scheel\nAll rights reserved.\nLicensed under BSD 2 Clause License:\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n- Redistributions of source code must retain the above copyright notice,\n  this list of conditions and the following disclaimer.\n- Redistributions in binary form must reproduce the above copyright notice, \n  this list of conditions and the following disclaimer in the documentation \n  and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n\n\nAn advanced table library with HTML5 Canvas support\n\nUsage:\n  var table = new jTable();\n  table.init('div-jtable-id', '/path/to/form/information', false, false, true);\n  table.setSplits('[,]', '{,}');\n  table.setUControls(['refresh', 'search']);\n  table.setLControls(['refresh', 'search']);\n  table.setTColumns([['ID', 0, 'number'], ['Name', 1, 'text'], ['Score', 2, 'number']]);\n  table.setKeyField(0);\n  table.load();\n  \nAPI:\n  Main:\n    init(tableid, datauri, editable, deletable, sortable) - initializes\n                                                            jTable\n    load() - Starts jTable, loads data, displays\n\n Config:\n    setSaveURI(uri) - if editable, location to push changes to\n    \n    setCreateURI(uri) - if able to add new rows, location to push changes to\n    \n    setDeleteURI(uri) - if able to delete rows, location to push changes to\n    \n    setSplits(line-split, row-split) - delimiter to split data by\n    \n    setControIDs(upper, lower) - IDs of control elements for table\n    \n    setUControls(controls) - Sets array of controls in upper controls area\n    \n    setLControls(controls) - Sets array of controls in lower controls area\n    \n    setTColumns(columns) - Sets array of columns\n    \n    setKeyField(id) - Key position in data array\n    \n    setBindHandler(handler) - Function to be called when binding events\n    \n    setUnbindHandler(handler) - Function to be called when unbinding events\n    \n  Getters:\n    getUControls() - Returns HTML of upper controls\n    \n    getLControls() - Returns HTML of lower controls\n    \n    getTableHead() - Returns HTML of table head\n    \n    getTableContent() - Returns HTML of contents of table\n    \n    getTableFoot() - Returns HTML of table foot\n    \n    getTable() - Gets entire table\n    \n    getColumnFromID() - Get name of column from ID\n    \n    getIDFromColumn() - Get ID of column from name\n    \n  Update Commands:  \n    doSort(cid) - Sorts table based on column id (cid)\n    \n    dataSorted(cid) - Checks if data is sorted by column (cid)\n    \n    doSearchSubmit(element) - Searches based on value of input #element\n    \n    newRow() - Adds a row to table for creation of new row\n    \n    editRows() - Turns checked rows into editable fields\n    \n    editRow(rowid) - Turns row at [rowid] into editable fields\n    \n    saveRow(rowid) - Saves updates to row at [rowid]\n    \n    deleteRow(rowid) - Deletes row at [rowid]\n    \n    refreshTable() - redraw table\n    \n    updateData() - (re)loads data from server\n    \n    showTable() - Shows table\n    \n    hideTable() - Hides table\n    \n    drawTable() - Renders table/contents, places in element\n    \n  Internal Commands:  \n    Quicksort functions:\n      doDataSwap(pos1, pos2)\n      doSortCompare(a, b)\n      doQuickSort(bpos, epos, cid)\n      doQuickSortPartition(bpos, ppos, epos, cid)\n    \n    Search functions:\n      arrayContainsRe(array, regex)\n      stringDistanceBetween(s1, s2)\n      arrayContainsFuzzy(array, term)\n      calculateFuzzyThreshold(string)\n      searchStiffMatch(bits)\n      searchKeyValue(bits)\n      searchLooseMatch(bits)\n    \n    Events:\n      eventCheckAll(event)\n      eventTriggerNew(event)\n      eventTriggerEdit(event)\n      eventTriggerEditRow(event)\n      eventTriggerDeleteRow(event)\n      eventTriggerSaveRow(event)\n      eventTriggerRefresh(event)\n      eventTriggerSort(event)\n      eventTriggerSearch(event)\n      bindEvents()\n      unbindEvents()\n      \n    newRowDrawCanvases()\n    \n    newRowBindEvents()\n    \n    drawCanvases()\n    \n    unhex(text)\n    \n    genRange(lower, upper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherboy%2Fjtable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcipherboy%2Fjtable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherboy%2Fjtable/lists"}