{"id":20084592,"url":"https://github.com/dhtmlx/meteor-scheduler-data","last_synced_at":"2025-09-20T23:54:08.284Z","repository":{"id":30186333,"uuid":"33737033","full_name":"DHTMLX/meteor-scheduler-data","owner":"DHTMLX","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-28T18:03:50.000Z","size":12,"stargazers_count":5,"open_issues_count":5,"forks_count":6,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-06T01:37:45.001Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DHTMLX.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-04-10T15:53:12.000Z","updated_at":"2023-05-16T12:42:53.000Z","dependencies_parsed_at":"2022-08-28T18:43:17.601Z","dependency_job_id":null,"html_url":"https://github.com/DHTMLX/meteor-scheduler-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DHTMLX/meteor-scheduler-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fmeteor-scheduler-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fmeteor-scheduler-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fmeteor-scheduler-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fmeteor-scheduler-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHTMLX","download_url":"https://codeload.github.com/DHTMLX/meteor-scheduler-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Fmeteor-scheduler-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276175291,"owners_count":25597794,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T15:52:35.921Z","updated_at":"2025-09-20T23:54:08.248Z","avatar_url":"https://github.com/DHTMLX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Meteor data adapter for dhtmlxScheduler\n================================\n\nAllows using [dhtmlxScheduler](http://dhtmlx.com/docs/products/dhtmlxScheduler) component with [Meteor](https://meteor.com/).\n\nHow to use\n-----------\n\n- Add the [dhtmlxScheduler data adapter](https://atmospherejs.com/dhtmlx/scheduler-data):\n\n    ```sh\n    meteor add dhtmlx:scheduler-data\n    ```\n\n- Define data collections as usual:\n\n    ```js\n    TasksCollection = new Mongo.Collection(\"tasks\");\n    ```\n\n- Initialize dhtmlxScheduler and data adapter:\n\n    ```html\n\t\u003cbody\u003e\n\t  \u003cdiv id=\"scheduler_here\" class=\"dhx_cal_container\" style='width:100%;height:500px;'\u003e\n\t      \u003cdiv class=\"dhx_cal_navline\"\u003e\n\t\t  \u003cdiv class=\"dhx_cal_prev_button\"\u003e\u0026nbsp;\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_next_button\"\u003e\u0026nbsp;\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_today_button\"\u003e\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_date\"\u003e\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_tab\" name=\"day_tab\" style=\"right:332px;\"\u003e\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_tab\" name=\"week_tab\" style=\"right:268px;\"\u003e\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_tab\" name=\"month_tab\" style=\"right:204px;\"\u003e\u003c/div\u003e\n\t\t  \u003cdiv class=\"dhx_cal_tab\" name=\"year_tab\" style=\"right:140px;\"\u003e\u003c/div\u003e\n\t      \u003c/div\u003e\n\t      \u003cdiv class=\"dhx_cal_header\"\u003e\n\t      \u003c/div\u003e\n\t      \u003cdiv class=\"dhx_cal_data\"\u003e\n\t      \u003c/div\u003e\n\t  \u003c/div\u003e\n\t\u003c/body\u003e\n    ```\n\n    ```js\n\tMeteor.startup(function() {\n\t  //Init dhtmlxScheduler.\n\t  scheduler.init(\"scheduler_here\", new Date());\n\n\t  //Init dhtmlxScheduler data adapter.\n\t  scheduler.meteor(TasksCollection);\n\t  //or\n\t  scheduler.meteor(TasksCollection.find(/*[anything]*/), TasksCollection);\n\t\n\t //or if you want to use validated methods instead of basic collection (insert, save, remove) functions\n\t  scheduler.meteor({collection : TasksCollection, collectionCursor: TasksCollection.find(/*[anything]*/), \n\t\tmethods: {\n\t\t\tinsert: referenceToInsertMethod,\n\t\t\tupdate: referenceToUpdateMethod,\n\t\t\tremove: referenceToRemoveMethod\n\t\t}\n\t  });\n\t  // Note that these methods must be defined with ValidatedMethod pacakge\n\t  \n\t  /* \n\t\tMethods signature :\n\t\tinsert: {event: Object},\n\t\tupdate: {_id:String, event: Object},\n\t\tremove: {_id: String}\n\t  */\n \t});\n    ```\n    \n    Note that this behavior works only with autopublish package installed.\n    Otherwise, you have to define your custom publication and subscribe to it\n    in the themplate ( or the router ).\n    \n    ```js\n    \n    // On the server side\n    Meteor.publish('all_tasks', function() {\n    \treturn TasksCollection.find({});\n    });\n    \n    // On the client side ( you can also use SubsManager package )\n    Meteor.subscribe('all_tasks');\n    \n    ```\n    \n    Note that this behavior works only with autopublish package installed.\n    Otherwise, you have to define your custom publication and subscribe to it\n    in the themplate ( or the router ).\n    \n    ```js\n    \n    // On the server side\n    Meteor.publish('all_tasks', function() {\n    \treturn TasksCollection.find({});\n    });\n    \n    // On the client side ( you can also use SubsManager package )\n    Meteor.subscribe('all_tasks');\n    \n    ```\n\n- Stop the data adapter:\n    ```js\n\tscheduler.meteorStop();\n    ```\nThat is it.\n\nLicense\n----------\n\nDHTMLX is published under the GPLv3 license.\n\nLicense:\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"),\n\tto deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n\tand/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n\tIN THE SOFTWARE.\n\n\nCopyright (c) 2015 DHTMLX\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Fmeteor-scheduler-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhtmlx%2Fmeteor-scheduler-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Fmeteor-scheduler-data/lists"}