{"id":20923803,"url":"https://github.com/patternfly/patternfly-sandbox-ng","last_synced_at":"2025-05-13T16:30:44.682Z","repository":{"id":57320864,"uuid":"139301176","full_name":"patternfly/patternfly-sandbox-ng","owner":"patternfly","description":"This repo contains instructions and the code for a set of Angular 6+ components for the PatternFly project. http://www.patternfly.org/patternfly-sandbox-ng","archived":true,"fork":false,"pushed_at":"2018-09-14T15:06:15.000Z","size":7866,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T11:15:39.979Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patternfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-01T04:51:13.000Z","updated_at":"2025-02-05T16:28:14.000Z","dependencies_parsed_at":"2022-08-26T01:11:05.068Z","dependency_job_id":null,"html_url":"https://github.com/patternfly/patternfly-sandbox-ng","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-sandbox-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-sandbox-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-sandbox-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-sandbox-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patternfly","download_url":"https://codeload.github.com/patternfly/patternfly-sandbox-ng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253981670,"owners_count":21994314,"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-11-18T20:17:48.998Z","updated_at":"2025-05-13T16:30:43.962Z","avatar_url":"https://github.com/patternfly.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/patternfly/patternfly-sandbox-ng.svg?branch=master)](https://travis-ci.org/patternfly/patternfly-sandbox-ng) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nWelcome to the PatternFly-Ng sandbox.  This is a library of common Angular components for use with the PatternFly reference implementation. Below is information on how to get started.  If you wish to contribute, please go to our [Contributions page][contributing].\n\n- Web site: https://www.patternfly.org\n- API Docs: http://www.patternfly.org/patternfly-sandbox-ng/\n- Build Status: https://travis-ci.org/patternfly/patternfly-sandbox-ng.svg?branch=master\n\n\n### Using the PatternFly-Ng sandbox In Your Application\n\nThis example demonstrates using the Angular-cli to get started with the PatternFly-Ng sandbox\n\n1. Installing angular-cli  \n*Note*: you can skip this part if you already have generated an Angular application using `ng-cli` and webpack\n  \n ```bash\n npm i -g @angular/cli\n ng new patternfly-sandbox-ng-app\n cd patternfly-sandbox-ng-app\n ng serve\n ```\n\n2. Install patternfly-sandbox-ng\n   ```bash\n     npm install patternfly-sandbox-ng --save\n   ```\n\n3. Add patternfly-sandbox-ng dependencies\n \n - install `patternfly`\n\n ```bash\n   npm install patternfly --save\n ```\n \n4. Add a patternfly-sandbox-ng component\n- open `src/app/app.module.ts` and add\n\n```typescript\nimport { NotificationModule } from 'patternfly-sandbox-ng/notification';\n// Or\nimport { NotificationModule } from 'patternfly-sandbox-ng';\n...\n\n@NgModule({\n   ...\n   imports: [NotificationModule, ... ],\n    ... \n})\n```\n\n- open `angular.json` and insert a new entry into the styles array \n\n```json\n      \"styles\": [\n\n        \"./node_modules/patternfly/dist/css/patternfly.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly-additions.min.css\",\n        \"./node_modules/patternfly-ng/dist/css/patternfly-ng.min.css\",\n        \"./node_modules/patternfly-sandbox-ng/dist/css/patternfly-sandbox-ng.min.css\",\n        \"styles.css\",\n      ],\n```\n\n- open `src/app/app.component.html` and add\n```\n\u003cpfng-toast-notification\n  [header]=\"'test header'\"\n  [message]=\"'this is a notification'\"\n  [showClose]=\"'true'\"\n  [type]=\"'success'\"\u003e\n\u003c/pfng-toast-notification\u003e\n```\n\n### Optional Dependencies\n\n1. To enable table drag and drop, add dragula.min.css from the ng2-dragula package\n\n- open `angular.json` and insert a new entry into the styles array \n\n```json\n      \"styles\": [\n        \"./node_modules/dragula/dist/dragula.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly-additions.min.css\",\n        \"./node_modules/patternfly-ng/dist/css/patternfly-ng.min.css\",\n        \"./node_modules/patternfly-sandbox-ng/dist/css/patternfly-sandbox-ng.min.css\",\n        \"styles.css\",\n      ],\n```\n\n2. To enable charts, add patternfly-settings.js from the patternfly package\n\n- open `angular.json` and insert a new entry into the scripts array \n\n```json\n      \"scripts\": [\n        \"./node_modules/patternfly/dist/js/patternfly-settings.js\"\n      ],\n```\n\n## \u003ca name=\"question\"\u003e\u003c/a\u003e Do you have a question?\n - Search our [GitHub issues][github-issues]\n - Join our patternfly-ng channel on [Slack](http://slack.patternfly.org)\n - Join our mailing-list following the instructions on [patternfly.org](http://www.patternfly.org/community/)\n\n[contributing]: https://github.com/patternfly/patternfly-sandbox-ng/blob/master/CONTRIBUTING.md\n[github-issues]: https://github.com/patternfly/patternfly-sandbox-ng/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternfly%2Fpatternfly-sandbox-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatternfly%2Fpatternfly-sandbox-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternfly%2Fpatternfly-sandbox-ng/lists"}