{"id":29215497,"url":"https://github.com/mbejda/bootstrapmodaldurandaljs","last_synced_at":"2025-07-03T00:09:55.558Z","repository":{"id":21016074,"uuid":"24308836","full_name":"mbejda/BootstrapModalDurandalJS","owner":"mbejda","description":"Bootstrap Modal Plugin For Durandal.js","archived":false,"fork":false,"pushed_at":"2014-12-21T16:35:26.000Z","size":158,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-04T02:00:38.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbejda.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":"2014-09-22T00:25:39.000Z","updated_at":"2023-08-04T02:00:38.740Z","dependencies_parsed_at":"2022-09-07T11:51:55.830Z","dependency_job_id":null,"html_url":"https://github.com/mbejda/BootstrapModalDurandalJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/mbejda/BootstrapModalDurandalJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FBootstrapModalDurandalJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FBootstrapModalDurandalJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FBootstrapModalDurandalJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FBootstrapModalDurandalJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbejda","download_url":"https://codeload.github.com/mbejda/BootstrapModalDurandalJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbejda%2FBootstrapModalDurandalJS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234965,"owners_count":23434922,"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":"2025-07-03T00:09:54.709Z","updated_at":"2025-07-03T00:09:55.499Z","avatar_url":"https://github.com/mbejda.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Bootstrap Modal Plugin for Durandal.js\n========================\n\n\nBootstrap Modal Plugin For Durandal.js.\n\nTested on Bootstrap 3.2 and Durandal 2.1.0.\n\n\n## Installation\n\n1. Add the BootstrapModal.js into Durandal.js plugins directory.\n2. Activate the plugin.\n\n``` javascript\n    app.configurePlugins({\n        router:true,\n        dialog: true,\n        bootstrapModal: true\n    });\n```\n\n## API\n\n##### dialog.showBootstrapDialog(obj, activationData)\nDisplays Twitter Bootstrap modal as a dialog.\n\n##### dialog.showBootstrapMessage(message, title, options, autoclose, settings) \nDisplays Twitter Bootstrap modal as a message.\n\n\n\n## Example Usage\n\n``` javascript \ndefine(['plugins/http', 'durandal/app', 'knockout', 'plugins/dialog'], function(http, app, ko,dialog) {\n    return {\n        displayName: 'Flickr',\n        images: ko.observableArray([]),\n        activate: function() {\n            if (this.images().length \u003e 0) {\n                return;\n            }\n            var that = this;\n            return http.jsonp('http://api.flickr.com/services/feeds/photos_public.gne', {\n                tags: 'mount ranier',\n                tagmode: 'any',\n                format: 'json'\n            }, 'jsoncallback').then(function(response) {\n                that.images(response.items);\n            });\n        },\n        select: function(item) {\n            console.log('select')\n            item.viewUrl = 'views/detail';\n\n            dialog.showBootstrapModal(item, {});\n        },\n        canDeactivate: function() {\n            return dialog.showBootstrapMessage('Are you sure you want to leave this page?', 'Navigate', ['Yes', 'No'], null);\n        }\n    };\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbejda%2Fbootstrapmodaldurandaljs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbejda%2Fbootstrapmodaldurandaljs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbejda%2Fbootstrapmodaldurandaljs/lists"}