{"id":16226817,"url":"https://github.com/c0bra/ui-bootstrap-growl","last_synced_at":"2025-04-08T04:06:01.512Z","repository":{"id":66922147,"uuid":"9920908","full_name":"c0bra/ui-bootstrap-growl","owner":"c0bra","description":"Growl-like alerts in AngularJS with bootstrap-growl","archived":false,"fork":false,"pushed_at":"2013-05-07T20:27:34.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T03:14:42.525Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c0bra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-05-07T20:26:08.000Z","updated_at":"2013-10-05T09:24:27.000Z","dependencies_parsed_at":"2023-02-20T14:31:04.512Z","dependency_job_id":null,"html_url":"https://github.com/c0bra/ui-bootstrap-growl","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/c0bra%2Fui-bootstrap-growl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fui-bootstrap-growl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fui-bootstrap-growl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fui-bootstrap-growl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0bra","download_url":"https://codeload.github.com/c0bra/ui-bootstrap-growl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773731,"owners_count":20993634,"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-10T12:50:33.383Z","updated_at":"2025-04-08T04:06:01.480Z","avatar_url":"https://github.com/c0bra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ui-bootstrap-growl directive [![Build Status](https://travis-ci.org/c0bra/ui-bootstrap-growl.png)](https://travis-ci.org/c0bra/ui-bootstrap-growl)\n\nThis directive allows you to add a growl-like alerts to your AngularJS app using [bootstrap-growl](https://github.com/ifightcrime/bootstrap-growl)\n\n# Requirements\n\n- AngularJS\n- JQuery\n- JQueryUI\n- [bootstrap-growl](https://github.com/ifightcrime/bootstrap-growl)\n\n# Testing\n\nWe use [karma](http://karma-runner.github.io/0.8/index.html) and jshint to ensure the quality of the code.  The easiest way to run these checks is to use grunt:\n\n  npm install -g grunt-cli\n  npm install\n  bower install\n  grunt\n\nThe karma task will try to open Chrome as a browser in which to run the tests.  Make sure this is available or change the configuration in `test\\test.config.js` \n\n# Usage\n\nWe use [bower](http://twitter.github.com/bower/) for dependency management.  Add\n\n    dependencies: {\n        \"ui-bootstrap-growl\": \"latest\"\n    }\n\nTo your `components.json` file. Then run\n\n    bower install\n\nThis will copy the ui-date files into your `components` folder, along with its dependencies. Load the script files in your application:\n\n    \u003cscript type=\"text/javascript\" src=\"components/jquery/jquery.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"components/jquery-ui/ui/jquery-ui.custom.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"components/angular/angular.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"components/ui-bootstrap-growl/ui-bootstrap-growl.js\"\u003e\u003c/script\u003e\n\nAdd the date module as a dependency to your application module:\n\n    var myAppModule = angular.module('MyApp', ['ui.bootstrap.growl'])\n\nApply the directive to a div:\n\n    \u003cinput ui-date\u003e\n\n## Options\n\nAll the jQueryUI DatePicker options can be passed through the directive.\n\n\tmyAppModule.controller('MyController', function($scope) {\n\t\t$scope.dateOptions = {\n\t\t\tchangeYear: true,\n\t\t\tchangeMonth: true,\n\t\t\tyearRange: '1900:-0'\n\t\t};\n\t});\n\n    \u003cinput ui-date=\"dateOptions\" name=\"DateOfBirth\"\u003e\n\n## Static Inline Picker\n\nIf you want a static picker then simply apply the directive to a div rather than an input element.\n\n    \u003cdiv ui-date=\"dateOptions\" name=\"DateOfBirth\"\u003e\u003c/div\u003e\n\n## Working with ng-model\n\nThe ui-date directive plays nicely with ng-model and validation directives such as ng-required.\n\nIf you add the ng-model directive to same the element as ui-date then the picked date is automatically synchronized with the model value.\n\n_The ui-date directive stores and expects the model value to be a standard javascript Date object._\n\n## ui-date-format directive\nThe ui-date directive only works with Date objects.\nIf you want to pass date strings to and from the date directive via ng-model then you must use the ui-date-format directive.\nThis directive specifies the format of the date string that will be expected in the ng-model.\nThe format string syntax is that defined by the JQueryUI Date picker. For example\n\n    \u003cinput ui-date ui-date-format=\"DD, d MM, yy\" ng-model=\"myDate\"\u003e\n\nNow you can set myDate in the controller.\n\n    $scope.myDate = \"Thursday, 11 October, 2012\";\n\n## ng-required directive\n\nIf you apply the required directive to element then the form element is invalid until a date is picked.\n\nNote: Remember that the ng-required directive must be explictly set, i.e. to \"true\".  This is especially true on divs:\n\n    \u003cdiv ui-date=\"dateOptions\" name=\"DateOfBirth\" ng-required=\"true\"\u003e\u003c/div\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fui-bootstrap-growl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0bra%2Fui-bootstrap-growl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fui-bootstrap-growl/lists"}