{"id":23006654,"url":"https://github.com/aaronvb/react_on_rails_materialize_modals","last_synced_at":"2025-04-02T15:13:53.077Z","repository":{"id":138759744,"uuid":"51182292","full_name":"aaronvb/react_on_rails_materialize_modals","owner":"aaronvb","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-06T00:14:42.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T22:38:22.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/aaronvb.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-02-06T00:14:23.000Z","updated_at":"2016-02-06T00:14:42.000Z","dependencies_parsed_at":"2023-04-28T03:36:00.162Z","dependency_job_id":null,"html_url":"https://github.com/aaronvb/react_on_rails_materialize_modals","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/aaronvb%2Freact_on_rails_materialize_modals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Freact_on_rails_materialize_modals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Freact_on_rails_materialize_modals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Freact_on_rails_materialize_modals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronvb","download_url":"https://codeload.github.com/aaronvb/react_on_rails_materialize_modals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837685,"owners_count":20841903,"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-12-15T08:13:13.762Z","updated_at":"2025-04-02T15:13:53.044Z","avatar_url":"https://github.com/aaronvb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react_on_rails materialize modal launch example\n\nThis is an example app that shows how to launch a modal with [react_on_rails](https://github.com/shakacode/react_on_rails) and [materialize](https://github.com/mkhairi/materialize-sass).\n\nThe main part of the code is in `client/app/bundles/HelloWorld/components/HelloworldWidget.jsx`\n\n```javascript\nrender() {\n  const { name } = this.props;\n  return (\n    \u003cdiv className=\"container\"\u003e\n      \u003ch3\u003e\n        Hello, {name}!\n      \u003c/h3\u003e\n      \u003chr/\u003e\n      \u003cform className=\"col s12\"\u003e\n        \u003cdiv className=\"row\"\u003e\n          \u003cdiv className=\"input-field col s12\"\u003e\n            \u003cinput\n              type=\"text\"\n              value={name}\n              onChange={this.handleChange}\n              id=\"first_name\"\n            /\u003e\n          \u003clabel htmlFor=\"first_name\"\n                 className=\"active\"\u003e\n            Say hello to:\n          \u003c/label\u003e\n          \u003c/div\u003e\n        \u003c/div\u003e\n      \u003c/form\u003e\n      \u003cTestModal /\u003e\n      \u003cp\u003e\n        \u003ca className=\"waves-effect waves-light btn modal-trigger\" href=\"#\"\u003e\n          Modal Class Trigger\n        \u003c/a\u003e\n      \u003c/p\u003e\n      \u003cp\u003e\n        \u003ca className=\"waves-effect waves-light btn\"\n           onClick={this.openModal}\u003e\n          Programmatically Launch Modal\n        \u003c/a\u003e\n      \u003c/p\u003e\n    \u003c/div\u003e\n  );\n}\n\nopenModal() {\n  $('#modal1').openModal();\n}\n```\n\n## Build\n- [react_on_rails](https://github.com/shakacode/react_on_rails) 2.3.0\n- [materialize](https://github.com/mkhairi/materialize-sass) 0.97.5\n- Ruby on Rails 4.2.5.1\n- Ruby 2.2.3\n- Npm 3.5.2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronvb%2Freact_on_rails_materialize_modals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronvb%2Freact_on_rails_materialize_modals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronvb%2Freact_on_rails_materialize_modals/lists"}