{"id":17696860,"url":"https://github.com/datashaman/rg-modal","last_synced_at":"2025-03-31T00:40:54.267Z","repository":{"id":66709886,"uuid":"43777694","full_name":"datashaman/rg-modal","owner":"datashaman","description":"Modal popup","archived":false,"fork":false,"pushed_at":"2015-08-20T08:37:21.000Z","size":516,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T05:43:46.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datashaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-06T20:47:36.000Z","updated_at":"2017-08-08T18:33:31.000Z","dependencies_parsed_at":"2023-03-03T13:16:09.638Z","dependency_job_id":null,"html_url":"https://github.com/datashaman/rg-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/datashaman%2Frg-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Frg-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Frg-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Frg-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datashaman","download_url":"https://codeload.github.com/datashaman/rg-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399800,"owners_count":20770907,"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-10-24T14:45:32.053Z","updated_at":"2025-03-31T00:40:54.252Z","avatar_url":"https://github.com/datashaman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/RiotGear/rg-modal/master/demo/img/example.png\" width=\"500px\" /\u003e\u003cbr\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/RiotGear/rg-modal/master/demo/img/example2.png\" width=\"500px\" /\u003e\n\n## Use\n\nAdd this to your Riot app markup\n\n```html\n\u003crg-modal modal=\"{ modal }\"\u003e\n\tModal body text\n\u003c/rg-modal\u003e\n```\n\nand add this to your JavaScript\n\n```javascript\nthis.modal = {\n\theading: 'Modal heading',\n\tvisible: false,\n\tghost: true,\n\tclose: false,\n\tbuttons: [\n\t\t{ action: function () {}, text: 'Save' },\n\t\t{ action: function () {}, text: 'Cancel', style: 'color: cornflowerblue;' }\n\t],\n\tonclose: function (e) {}\n};\n```\n\nTo make the modal appear simply set the modal's `visible` property to true.\n\n```javascript\nthis.modal.visible = true;\n```\n\n- `ghost` set this to true if you want a body-less modal\n- `close` if set to false the small 'x' close button will be hidden","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatashaman%2Frg-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatashaman%2Frg-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatashaman%2Frg-modal/lists"}