{"id":23058755,"url":"https://github.com/suhdev/sh-react-modal","last_synced_at":"2025-04-03T06:20:39.265Z","repository":{"id":57357504,"uuid":"79490038","full_name":"suhdev/sh-react-modal","owner":"suhdev","description":"A modal component for ReactJS application written in TypeScript. ","archived":false,"fork":false,"pushed_at":"2017-01-25T22:08:42.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T13:17:43.817Z","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/suhdev.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":"2017-01-19T20:02:37.000Z","updated_at":"2017-01-25T22:08:43.000Z","dependencies_parsed_at":"2022-09-26T16:33:15.887Z","dependency_job_id":null,"html_url":"https://github.com/suhdev/sh-react-modal","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/suhdev%2Fsh-react-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fsh-react-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fsh-react-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fsh-react-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suhdev","download_url":"https://codeload.github.com/suhdev/sh-react-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944816,"owners_count":20858851,"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-16T02:17:29.710Z","updated_at":"2025-04-03T06:20:39.246Z","avatar_url":"https://github.com/suhdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh-react-modal \n\nA configurable modal component for ReactJS application written in TypeScript. \n\n\n```javascript \nvar el = document.createElement('div');\n        el.className = 'container'; \n        document.body.appendChild(el);\n        var service = ShReact.createModalService(el); \n        service.show({\n            content:(onSuccess,onHide)=\u003e{\n                return (\n                    React.createElement('div',{className:'test',onClick:onSuccess,title:'Test Dialog'},'Test')\n                );\n            },\n            props:{\n                title:\"Test Dialog\",\n                hasClose:true,\n                closeOnBackdrop:false\n            }})\n            .then(function(em){\n                return service.show({\n                content:(onSuccess,onCancel)=\u003e{\n                    return (null);\n                },\n                props:{\n                    buttons:[{\n                        label:'OK',\n                        key:'ok'\n                    },{\n                        label:'Cancel',\n                        key:'cancel'\n                    }]\n                }});\n            },function(ez){\n                console.log(ez);\n            })\n            .then(function(et){\n                console.log(et);\n            });\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhdev%2Fsh-react-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuhdev%2Fsh-react-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhdev%2Fsh-react-modal/lists"}