|
1 | 1 | # Angular2 Materialize |
2 | 2 |
|
3 | | -[](https://travis-ci.org/InfomediaLtd/angular2-materialize) |
4 | | -[](https://www.npmjs.com/package/angular2-materialize) |
5 | | -[](https://www.npmjs.com/package/angular2-materialize) |
6 | | -[](https://opensource.org/licenses/MIT) |
| 3 | +**This repo is a fork from [InfomediaLtd/angular2-materialize](https://github.com/InfomediaLtd/angular2-materialize) that is not maintained on a regular basis.** |
| 4 | + |
| 5 | +[](https://travis-ci.org/samber/angular2-materialize) |
| 6 | +[](https://www.npmjs.com/package/@samuelberthe/angular2-materialize) |
| 7 | +[](https://www.npmjs.com/package/@samuelberthe/angular2-materialize) |
| 8 | +[](https://opensource.org/licenses/MIT) |
7 | 9 | [](https://github.com/semantic-release/semantic-release) |
8 | 10 | [](http://commitizen.github.io/cz-cli/) |
9 | 11 | [](http://makeapullrequest.com) |
10 | 12 |
|
11 | | -[](https://www.npmjs.com/package/angular2-materialize) |
12 | | -[](https://www.npmjs.com/package/angular2-materialize) |
| 13 | +[](https://www.npmjs.com/package/@samuelberthe/angular2-materialize) |
| 14 | +[](https://www.npmjs.com/package/@samuelberthe/angular2-materialize) |
13 | 15 |
|
14 | 16 | Angular 2 support for Materialize CSS framework [http://materializecss.com/](http://materializecss.com/) |
15 | 17 |
|
@@ -70,14 +72,14 @@ Apply an empty [MaterializeDirective](https://github.com/InfomediaLtd/angular2-m |
70 | 72 | </form> |
71 | 73 | ``` |
72 | 74 |
|
73 | | -The [MaterializeDirective](https://github.com/InfomediaLtd/angular2-materialize/blob/master/src/materialize-directive.ts) attribute directive (**materialize**) accepts any MaterializeCSS initialization call to apply to the element. The list of supported functions are provided by MaterializeCSS. Examples: collapsible, modal, tooltip, dropdown, tabs, material_select, sideNav, etc. |
| 75 | +The [MaterializeDirective](https://github.com/@samuelberthe/angular2-materialize/blob/master/src/materialize-directive.ts) attribute directive (**materialize**) accepts any MaterializeCSS initialization call to apply to the element. The list of supported functions are provided by MaterializeCSS. Examples: collapsible, modal, tooltip, dropdown, tabs, material_select, sideNav, etc. |
74 | 76 |
|
75 | 77 | For example, to apply tooltip: |
76 | 78 | ```html |
77 | 79 | <a materialize="tooltip" class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="I am tooltip">Hover me!</a> |
78 | 80 | ``` |
79 | 81 |
|
80 | | -The [Materialize](https://github.com/InfomediaLtd/angular2-materialize/blob/master/src/materialize.ts) attribute directive also allows specifying parameters to be passed to the function, but providing a **materializeParams** attribute returning an array of params. Use it with a function call or even by inlining the params in the HTML. |
| 82 | +The [Materialize](https://github.com/@samuelberthe/angular2-materialize/blob/master/src/materialize.ts) attribute directive also allows specifying parameters to be passed to the function, but providing a **materializeParams** attribute returning an array of params. Use it with a function call or even by inlining the params in the HTML. |
81 | 83 |
|
82 | 84 | Another useful option is emitting actions on an element. You may want to do that for calling Materialize functions, like closing a modal dialog or triggering a toast. You can do that by setting the **materializeActions** attribute, which accepts an [EventEmitter](https://angular.io/docs/ts/latest/api/core/index/EventEmitter-class.html). The emitted events can either be a "string" type action (Materialize function call) or a structure with action and parameters: |
83 | 85 |
|
@@ -214,4 +216,3 @@ Another thing you would need to confirm is being able to load web fonts properly |
214 | 216 | Notice that the url-loader is required for this to work (npm install it). |
215 | 217 |
|
216 | 218 | The following example project is a fork of the angular2-webpack-starter with the addition of angular2-materialize: [InfomediaLtd/angular2-webpack-starter](https://github.com/InfomediaLtd/angular2-webpack-starter) |
217 | | -
|
|
0 commit comments