{"id":18982330,"url":"https://github.com/defactosoftware/cell-js","last_synced_at":"2025-06-14T05:38:09.506Z","repository":{"id":57106769,"uuid":"92270092","full_name":"DefactoSoftware/cell-js","owner":"DefactoSoftware","description":"Simple solution for binding Javascript to specific templates or side server components","archived":false,"fork":false,"pushed_at":"2020-02-27T10:52:17.000Z","size":219,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-02T10:08:22.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DefactoSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-24T08:41:06.000Z","updated_at":"2020-02-27T10:52:19.000Z","dependencies_parsed_at":"2022-08-21T02:30:36.797Z","dependency_job_id":null,"html_url":"https://github.com/DefactoSoftware/cell-js","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/DefactoSoftware%2Fcell-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Fcell-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Fcell-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DefactoSoftware%2Fcell-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DefactoSoftware","download_url":"https://codeload.github.com/DefactoSoftware/cell-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223713507,"owners_count":17190498,"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-11-08T16:13:09.916Z","updated_at":"2024-11-08T16:13:10.601Z","avatar_url":"https://github.com/DefactoSoftware.png","language":"JavaScript","readme":"# cell-js\n\nSimple and lightweight solution for binding Javascript to specific templates or side server components.  \nWe use this alongside [ex_cell](https://github.com/DefactoSoftware/ex_cell), an Elixir/Phoenix module for coupling Javascript, CSS, Javascript and Views.\n\n## Installation\n\n```\nnpm install @defacto/cell-js\n```\n\nor\n\n```\nyarn add @defacto/cell-js\n```\n\n## Usage\n\n```js\nimport { Cell, Builder } from \"cells-js\";\n\nclass AvatarCell extends Cell {\n  initialize() {\n    this.element.addEventListener(\"click\", this.onToggleOpenClass);\n  }\n\n  onToggleOpenClass = e =\u003e this.element.classList.toggle(\"open\");\n}\n\nBuilder.register(AvatarCell, \"AvatarCell\");\n\nexport default AvatarCell;\n```\n\nFor a more complete implementation see [ex_cell](https://github.com/DefactoSoftware/ex_cell).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefactosoftware%2Fcell-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefactosoftware%2Fcell-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefactosoftware%2Fcell-js/lists"}