{"id":13729226,"url":"https://github.com/ojji/ng-semantic-toast","last_synced_at":"2025-05-08T01:32:01.738Z","repository":{"id":72148966,"uuid":"109369369","full_name":"ojji/ng-semantic-toast","owner":"ojji","description":"Angular toast notification module built with Semantic UI.","archived":false,"fork":false,"pushed_at":"2017-11-14T10:10:52.000Z","size":463,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-14T20:37:44.540Z","etag":null,"topics":["angular","semantic-ui","toast-notifications"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"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/ojji.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-11-03T08:09:43.000Z","updated_at":"2017-11-14T10:12:37.000Z","dependencies_parsed_at":"2023-07-02T19:46:24.888Z","dependency_job_id":null,"html_url":"https://github.com/ojji/ng-semantic-toast","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/ojji%2Fng-semantic-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojji%2Fng-semantic-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojji%2Fng-semantic-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ojji%2Fng-semantic-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ojji","download_url":"https://codeload.github.com/ojji/ng-semantic-toast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981589,"owners_count":21835454,"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":["angular","semantic-ui","toast-notifications"],"created_at":"2024-08-03T02:00:57.093Z","updated_at":"2025-05-08T01:32:01.403Z","avatar_url":"https://github.com/ojji.png","language":"TypeScript","funding_links":[],"categories":["UI Components"],"sub_categories":["Notification"],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/ojji/ng-semantic-toast\"\u003e\r\n    \u003cimg height=\"240\" width=\"240\" src=\"https://raw.githubusercontent.com/ojji/ng-semantic-toast/master/toast-logo-300.png\"\u003e\r\n  \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003c!-- Name --\u003e\r\n\u003ch1 align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/ojji/ng-semantic-toast\"\u003eAngular + Semantic UI Toast module\u003c/a\u003e\r\n\u003c/h1\u003e\r\n\r\nAngular toast notification module built with Semantic UI.\r\n\r\n## Dependencies\r\n\r\n* npm \u003e 5.5.1 to install from GitHub.\r\n* ng2-semantic-ui \u003e 0.9.6\r\n* angular \u003e 4.3.1\r\n\r\n## Installation\r\n\r\n* To install this library, you need to install from GitHub.\r\n\r\n``$ npm install git+https://github.com/ojji/ng-semantic-toast.git --save``\r\n\r\n* You need to include the Semantic UI stylesheet in your ``index.html`` file.\r\n\r\n```html\r\n\u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.css\"\u003e\r\n```\r\n\r\n* Import the toast module in your application module, and add the toast service to the providers.\r\n\r\n```typescript\r\nimport { SuiToastModule } from 'ng-semantic-toast';\r\n\r\n@NgModule({\r\n    declarations: [AppComponent, ...],\r\n    imports: [SuiToastModule],\r\n    providers: [SuiToastService],\r\n    bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\nNow you are good to go!\r\n\r\n## Usage\r\n\r\nTo add a new toast, you have to call the toast service's ``addToast(toast: SuiToast)`` method.\r\n\r\nThere are 2 types of toasts supported at the moment - both extending the ```SuiToast``` abstract class:\r\n\r\n* ```SuiMessageToast``` - these are simple toasts based on the Semantic UI message component, capable to display simple notifications to the user\r\n* ```SuiCustomTemplateToast\u003cT\u003e``` - these are customisable toasts which need custom templates supplied and a data context to operate on, allowing to create more complex notifications to display to the user\r\n\r\nBoth classes are customizable with properties in the ```IToastOptions``` interface.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojji%2Fng-semantic-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojji%2Fng-semantic-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojji%2Fng-semantic-toast/lists"}