{"id":19197514,"url":"https://github.com/rikulo/dquery","last_synced_at":"2025-08-11T21:04:48.262Z","repository":{"id":8033836,"uuid":"9443625","full_name":"rikulo/dquery","owner":"rikulo","description":"jQuery ported in Dart.","archived":false,"fork":false,"pushed_at":"2025-06-09T07:17:47.000Z","size":341,"stargazers_count":53,"open_issues_count":1,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-09T08:29:18.283Z","etag":null,"topics":["dart","jquery"],"latest_commit_sha":null,"homepage":"https://quire.io","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikulo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-04-15T08:03:34.000Z","updated_at":"2025-06-09T07:17:51.000Z","dependencies_parsed_at":"2025-06-09T08:33:11.802Z","dependency_job_id":null,"html_url":"https://github.com/rikulo/dquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rikulo/dquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fdquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fdquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fdquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fdquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikulo","download_url":"https://codeload.github.com/rikulo/dquery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fdquery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269956177,"owners_count":24503116,"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-08-11T02:00:10.019Z","response_time":75,"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":["dart","jquery"],"created_at":"2024-11-09T12:17:07.649Z","updated_at":"2025-08-11T21:04:48.225Z","avatar_url":"https://github.com/rikulo.png","language":"Dart","readme":"# DQuery\n\nDQuery is a porting of [jQuery](http://jquery.com/) in Dart.\n\n\n* [API Reference](https://pub.dev/documentation/dquery/latest/)\n* [Git Repository](https://github.com/rikulo/dquery)\n* [Discussion](http://stackoverflow.com/questions/tagged/rikulo)\n* [Issues](https://github.com/rikulo/dquery/issues)\n\n## Install from Dart Pub Repository\n\nInclude the following in your `pubspec.yaml`:\n\n    dependencies:\n      dquery: any\n\nThen run the [Pub Package Manager](http://pub.dartlang.org/doc) in Dart Editor (Tool \u003e Pub Install). If you are using a different editor, run the command\n(comes with the Dart SDK):\n\n    pub install\n\n## Usage\n\nYou can create a query object by selector. With context provided, the query will be based on different element.\n\n    // selects all elements containing 'active' in CSS class\n\tElementQuery $elems = $('.active');\n\t\n\t// selects all descendant elements of div containing 'active' in CSS class\n\tElementQuery $elems = $('.active', div);\n\nIt implements List\u003cElement\u003e.\n\n\t$('.active')[0];\n\t$('.active').isEmpty;\n\tfor (Element e in $('.active')) { ... }\n\nCreate another query object with traversing API, including [find](https://pub.dev/documentation/dquery/latest/dquery/Query/find.html), [closest](https://pub.dev/documentation/dquery/latest/dquery/ElementQuery/closest.html), [parent](https://pub.dev/documentation/dquery/latest/dquery/ElementQuery/parent.html), [children](https://pub.dev/documentation/dquery/latest/dquery/ElementQuery/children.html).\n\n\t$('.active').closest('ul');\n\t$('#myDiv').find('a.btn');\n\nManipulate selected elements.\n\n\t$('.active').removeClass('active');\n\t$('.fade').hide();\n\nRegister event handlers on queried elements, or trigger an event by API.\n\n\t$('#myBtn').on('click', (QueryEvent e) {\n\t\t...\n\t});\n\t$('#myBtn').trigger('click', data: 'my data');\n\nThere are query objects of `Document` and `Window` too.\n\n\tQuery $doc = $document();\n\tQuery $win = $window();\n\nCheck the [API reference](https://pub.dev/documentation/dquery/latest/dquery/dquery-library.html) for more features.\n\n## Comparison to jQuery\n\nSee [here](https://github.com/rikulo/dquery/blob/master/doc/Comparison.md).\n\n## Notes to Contributors\n\n### Test and Debug\n\nYou are welcome to submit [bugs and feature requests](https://github.com/rikulo/dquery/issues). Or even better if you can fix or implement them!\n\n### Fork DQuery\n\nIf you'd like to contribute back to the core, you can [fork this repository](https://help.github.com/articles/fork-a-repo) and send us a pull request, when it is ready.\n\nPlease be aware that one of Rikulo's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.\n\nIf you are new to Git or GitHub, please read [this guide](https://help.github.com/) first.\n\n## Who Uses\n\n* [Quire](https://quire.io) - a simple, collaborative, multi-level task management tool.\n* [Keikai](https://keikai.io) - a sophisticated spreadsheet for big data\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fdquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikulo%2Fdquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fdquery/lists"}