{"id":22750276,"url":"https://github.com/webix-hub/webix-meteor-data","last_synced_at":"2025-04-14T12:53:19.477Z","repository":{"id":26701174,"uuid":"30158238","full_name":"webix-hub/webix-meteor-data","owner":"webix-hub","description":"Meteor Data adapter for Webix UI","archived":false,"fork":false,"pushed_at":"2017-03-22T16:19:06.000Z","size":9,"stargazers_count":16,"open_issues_count":6,"forks_count":9,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-28T02:03:24.256Z","etag":null,"topics":["meteor","webix","webix-integration"],"latest_commit_sha":null,"homepage":"http://webix.com","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/webix-hub.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":"2015-02-01T20:12:28.000Z","updated_at":"2019-07-15T16:26:53.000Z","dependencies_parsed_at":"2022-07-24T19:17:09.424Z","dependency_job_id":null,"html_url":"https://github.com/webix-hub/webix-meteor-data","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fwebix-meteor-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fwebix-meteor-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fwebix-meteor-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webix-hub%2Fwebix-meteor-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webix-hub","download_url":"https://codeload.github.com/webix-hub/webix-meteor-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248885451,"owners_count":21177625,"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":["meteor","webix","webix-integration"],"created_at":"2024-12-11T04:13:31.343Z","updated_at":"2025-04-14T12:53:19.451Z","avatar_url":"https://github.com/webix-hub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Meteor data adapter for Webix UI\n================================\n\n[![npm version](https://badge.fury.io/js/webix-meteor-data.svg)](https://badge.fury.io/js/webix-meteor-data)\n\nAllows using [Webix](http://webix.com) UI components with [Meteor](https://meteor.com/).\nReactive widgets that have been tested include [DataTable](http://docs.webix.com/datatable__index.html)\nand [List](http://docs.webix.com/desktop__list.html). All other widgets with\n[linear](http://docs.webix.com/desktop__dynamic_loading.html) underlying data structures should work too. \n\nHow to use\n-----------\n\n- Add the webix package\n\n    ```sh\n    meteor npm i --save webix\n    meteor npm i --save webix-meteor-data\n    ```\n\n- Define data collections as usual:\n\n    ```js\n    Movies = new Mongo.Collection('movies');\n    ```\n\n- Initialize Webix components using \"meteor-\u003e{collection}\" as the data URL:\n\n    ```js\n    webix.ui({\n      view: 'datatable',\n      editable: true, editaction: 'dblclick',\n      autoconfig: true,\n      // load data from the \"movies\" collection\n      url: 'meteor-\u003ebooks',\n      // save data to the 'movies' collection\n      save: 'meteor-\u003ebooks'\n    }\n    ```\n\nThat is it.\n\nAdding the `url` property will enable data loading and automatic component updates when data changes in the\nspecified [Collection](http://docs.meteor.com/#/full/collections).\n\nThe `save` property ensures that all changes to the component will be saved back to the Collection.\n\n\n\n### Using Cursors\n\nInstead of using a string for the `url` property, you can use cursors and collections directly.\n\n\n#### Cursor\n\n```js\nMovies = new Mongo.Collection('movies');\nvar cursor = Movies.find();\n\nwebix.ui({\n  view: 'list',\n  url: webix.proxy('meteor', cursor)\n});\n```\n\n#### Collection\n\n```js\nMovies = new Mongo.Collection('movies');\n\nwebix.ui({\n  view: 'list',\n  url:  webix.proxy('meteor', Movies),\n  save: webix.proxy('meteor', Movies)\n});\n```  \n\n#### Mixing cursors and collections\n\n```js\nMovies = new Mongo.Collection('movies');\n\nwebix.ui({\n  view: 'list',\n  url:  webix.proxy('meteor', Movies.find()),\n  save: webix.proxy('meteor', Movies)\n});\n```\n\n\n### Dynamic data loading\n\nYou can use [`load`](http://docs.webix.com/api__atomdataloader_load.html) method to (re)load data in the component. \n\n```js\n$$('datatable').load('meteor-\u003emovies');\n```\n\nor\n\n```js\n$$('datatable').load( webix.proxy('meteor', Movies.find()) );\n```\n\n\n\n\n### Sync api\n\nWebix components have a [sync](http://docs.webix.com/api__link__ui.proto_sync.html) method to\n[synchronize data between components](http://docs.webix.com/desktop__data_binding.html). The method can be used with Meteor.\n\n\n```\nMovies = new Mongo.Collection('movies');\n$$('details').sync($$('datatable'));\n```\n\nLicense\n----------\n\nWebix is published under the [GPLv3 license](https://github.com/dandv/meteor-webix/issues/1#issuecomment-74756813).\n\nThis Meteor-Webix adapter is released under the MIT License:\n\nCopyright (c) 2015 Maksim Kozhukh \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebix-hub%2Fwebix-meteor-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebix-hub%2Fwebix-meteor-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebix-hub%2Fwebix-meteor-data/lists"}