{"id":18925018,"url":"https://github.com/kouyjes/b-cells","last_synced_at":"2025-12-12T04:05:39.456Z","repository":{"id":57188739,"uuid":"71199410","full_name":"kouyjes/b-cells","owner":"kouyjes","description":"cells for big data","archived":false,"fork":false,"pushed_at":"2019-04-11T08:05:01.000Z","size":318,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-15T18:37:57.161Z","etag":null,"topics":["big-data","cell-layout","cells","cells-render","custom-cell","fixed-header","fixed-table","header-cell","layout","render","resize","resize-cell","table","table-layout"],"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/kouyjes.png","metadata":{"files":{"readme":"README.md","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":"2016-10-18T02:08:33.000Z","updated_at":"2019-04-11T08:05:03.000Z","dependencies_parsed_at":"2022-08-28T10:51:27.802Z","dependency_job_id":null,"html_url":"https://github.com/kouyjes/b-cells","commit_stats":null,"previous_names":["kouyjes/b-table"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fb-cells","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fb-cells/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fb-cells/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kouyjes%2Fb-cells/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kouyjes","download_url":"https://codeload.github.com/kouyjes/b-cells/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921844,"owners_count":19718844,"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":["big-data","cell-layout","cells","cells-render","custom-cell","fixed-header","fixed-table","header-cell","layout","render","resize","resize-cell","table","table-layout"],"created_at":"2024-11-08T11:08:55.054Z","updated_at":"2025-12-12T04:05:39.094Z","avatar_url":"https://github.com/kouyjes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# b-cells\nB-cells is a component for rendering big data\n\n## Demo\n[Demo url](https://kouyjes.github.io/b-cells/examples/table.html)\n\n## Get Starting\n### Define CellsModel\n1.Init CellsModel\n```javascript\n    var cellsModel = new HERE.UI.CELL.CellsModel();\n```\n2.Init Header\n```javascript\n    var header = {\n        height:50, // define header height\n        minHeight:100,// define min height of header\n        fields:[]\n    };\n    // Define header field\n    var field = {\n        name:'', // define column header name\n        width:'', // define width absolute width,or relative width,eg 200px or 20%\n        minWidth:'',// define min width of column\n        maxWidth:'',\n        //render:Function define render function\n        style:{\n            backgroundColor:'' // define background color\n        }\n    };\n    header.fields.push(field);\n```\n2.Init Rows\n```javascript\n    var rows = [];\n    // Define row\n    var row = {\n        height:'10%',// define row height \n        minHeight:'100px'\n    };\n    // define row fields\n    var fields = [];\n    fields.push({\n        value:'row text',\n        html:'',// define html value\n        //render:Function(cell),define render function\n        style:{\n            'background-color':'#ccc'\n        }\n    });\n    row.fields = fields;\n    rows.push(row);\n```\n3.Append header and rows to cellsModel\n```javascript\n    cellsModel.header = header;\n    cellsModel.rows = rows;\n```\n4.Init Cells\n```javascript\n    var tableCell = new HERE.UI.CELL.Cells(cellsModel1,{\n        renderTo:'#table1',// dom selector\n        rowResize:true, // if row resizable\n        colResize:true, // if column resizable\n        scrollY:true, // if scroll Y\n        scrollX:false, // if scroll X\n        customScroll:null // use default scrollbar if null\n        /*\n         {\n             width:12,height:13,hTrackColor:'',\n             hScrollColor:'',\n             vTrackColor:'',\n             vScrollColor:'',\n             autoHideX:true,\n             autoHideY:true,\n             timeout:1300\n         }\n         */\n    });\n```\n5.Render cells\n```javascript\n    tableCell.render();\n```\n6.Cells Event\n- Click Event (triggered when click cells area)\n```javascript\n    tableCell.addEventListener('click', function (e) {\n    })\n```\n- Cells click Event (triggered when click a cell)\n```javascript\n    tableCell.addEventListener('cellClick', function (e) {\n    });\n```\n- Scroll event (triggered when scrolling)\n```javascript\n    tableCell.addEventListener('scroll', function (e) {\n    });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkouyjes%2Fb-cells","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkouyjes%2Fb-cells","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkouyjes%2Fb-cells/lists"}