{"id":28405708,"url":"https://github.com/thomasdev-de/bs-toast","last_synced_at":"2026-03-12T00:33:38.703Z","repository":{"id":244467834,"uuid":"815275926","full_name":"ThomasDev-de/bs-toast","owner":"ThomasDev-de","description":"This small plugin handles the implementation of bootstrap toast element.","archived":false,"fork":false,"pushed_at":"2025-06-13T08:43:11.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T03:46:24.044Z","etag":null,"topics":["bootstrap5","javascript","jquery","notification","plugin"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ThomasDev-de.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-14T18:35:18.000Z","updated_at":"2025-08-04T20:50:16.000Z","dependencies_parsed_at":"2024-06-15T22:29:21.819Z","dependency_job_id":"d624bf0f-68f7-45ec-af5d-7e3b3f466b28","html_url":"https://github.com/ThomasDev-de/bs-toast","commit_stats":null,"previous_names":["thomasdev-de/bs-notify","thomasdev-de/bs-toast"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ThomasDev-de/bs-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasDev-de","download_url":"https://codeload.github.com/ThomasDev-de/bs-toast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fbs-toast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30408492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bootstrap5","javascript","jquery","notification","plugin"],"created_at":"2025-06-01T22:07:41.855Z","updated_at":"2026-03-12T00:33:38.688Z","avatar_url":"https://github.com/ThomasDev-de.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README: bs-toast.js\n\n## 1. Installation\n\nYou can include `bs-toast.js` in your project using Composer or by manually downloading the script file.\n\n### Composer\n\nUse the following command to install via composer:\n\n```shell\ncomposer require bs-toast:dev-main\n```\n\n### Manual Installation\n\nTo manually install the script, download `bs-toast.js` and include it in your project's JavaScript files.\n\n## 2. Options\n\n`bsToast` file has a number of options you can customize. The options for the toast feature include:\n\n- `type`: The type of the toast. It could be one of 'info', 'warning', 'success', 'danger'. The default value is 'info'.\n- `title`: The title of the toast. By default, it's null.\n- `message`: The message of the toast. The default message is 'Always be informed'.\n- `start`: The starting time of the toast, it is 0 by default.\n- `delay`: Delay before the toast disappears, 5000ms as default.\n- `autoHide`: A boolean indicating whether to hide the toast automatically. It's by default set to true.\n- `animation`: A boolean indicating whether the toast should be animated or not, also set to true by default.\n- `placement`: The placement of the toast. The possible values are 'ts', 'tc', 'te', 'ms', 'mc', 'me', 'bs', 'bc', 'be'.\n  By default, it's 'mc'.\n\n## 3. Events\n\nThe script triggers various events that allow your application to react to the different states of the toast lifecycle:\n\n- `onShow`: This event is fired when the toast starts showing.\n- `onShown`: Firing after the toast has been shown.\n- `onHide`: This event is fired when the toast starts hiding.\n- `onHidden`: Firing after the toast has been hidden.\n- \n### 4. Methods\n\n```javascript\nconst myToast = $.bsToast({\n    ...\n}); // The plugin returns the toast\n\nmyToast.isExists() // bool\n// The bootstrap methods\nmyToast.hide()\nmyToast.isShown() // bool\n\nconst allToast = $.bsToast.getToasts();\n// Close all opened toasts\n$.bsToast.closeAll();\n```\n\n## 5. Example\n\nHere is an example of how to use the `bsToast`.:\n\n```javascript\n$(document).ready(function() {\n    const myToast = $.bsToast({\n        type: 'info',\n        title: 'Hello, User',\n        message: 'This toast is a toast example.',\n        autoHide: false,\n        placement: 'tc',\n        onShow: function() {\n            // Write your code here for the onShow event.\n        },\n        onShown: function() {\n            // Write your code here for the onShown event.\n        },\n        onHide: function() {\n            // Write your code here for the onHide event.\n        },\n        onHidden: function() {\n            // Write your code here for the onHidden event.\n        },\n    });\n});\n```\n\n## 5. Further Information\n\nFor further information or to address additional queries, please feel free to open an issue in the repository or contact\nthe maintainers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fbs-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasdev-de%2Fbs-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fbs-toast/lists"}