Skip to content

Commit b053c31

Browse files
author
Matteo Rossi
committed
v0.2.11
Add customClass option
1 parent cec05f3 commit b053c31

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# mrFeedback - 0.2.10
1+
# mrFeedback - 0.2.11
22

33
`mrFeedback` - Create box feedback for your Angular App: simple, complete, personalized. With this plugin you can create and show a "box feedback" to the user. You can set "title" and "message" to show, add buttons that run connected functions when clicked, ecc... With new theme "notification" you could use it for real time notification too!
44

55
## Installation
6-
* Download the latest release: [v0.2.10](https://github.com/teorossi82/mrFeedback/archive/master.zip)
6+
* Download the latest release: [v0.2.11](https://github.com/teorossi82/mrFeedback/archive/master.zip)
77
* Clone the repository: `git clone https://github.com/teorossi82/mrFeedback.git`
88
* Install with [Bower](http://bower.io): `bower install mrFeedback`
99

@@ -18,6 +18,9 @@ The plugin requires
1818
Open site [http://teorossi82.github.io/mrFeedback](http://teorossi82.github.io/mrFeedback/)
1919

2020
## News
21+
v0.2.11
22+
* Add option `customClass`, utils to add a class to the box with you can customize your mrFeedback's style.
23+
2124
v0.2.8
2225
* Box with notification theme have now position relative so they can be visible in same time.
2326

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mrFeedback",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"homepage": "http://teorossi82.github.io/mrFeedback/",
55
"authors": [
66
"Matteo Rossi <teorossi82@yahoo.it>"

build/mrFeedback.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
mrFeedback v0.2.8
2+
mrFeedback v0.2.11
33
(c) 2010-2016 Matteo Rossi, https://it.linkedin.com/in/matteorossi2,
44
License: MIT
55
*/
@@ -72,7 +72,7 @@
7272
link:function(scope,elem,attrs){
7373
var template = '<div ng-if="mrFeedback.feedback.modal" class="mrFeedbackLayout"></div>' +
7474
'<div class="mrFeedback" ng-class="mrFeedback.theme">' +
75-
'<div class="box-feedback {{mrFeedback.notificationType}}">' +
75+
'<div class="box-feedback {{mrFeedback.notificationType}} {{mrFeedback.feedback.customClass}}">' +
7676
'<div class="box-left">' +
7777
'<i class="fa fa-exclamation-triangle"></i>' +
7878
'</div>' +

dist/mrFeedback.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ <h4>A simple component to create box feedback wich you can:</h4>
2525
<ol>
2626
<li>Show <mark>simple message</mark>;</li>
2727
<li>Show message with <mark>personalized buttons</mark> and <mark>personalized function</mark> to trigger on click of the buttons;</li>
28+
<li>Show <mark>real time notifications</mark>;</li>
2829
</ol>
2930
<a class="btn btn-primary" href="https://github.com/teorossi82/mrFeedback">View on Github</a>
3031
<a class="btn btn-primary" href="https://github.com/teorossi82/mrFeedback/archive/master.zip">Download zip</a>
@@ -198,6 +199,11 @@ <h3>Options Configuration <small>Here are the keys that you can use in the optio
198199
<td>bootstrap<br/>mac<br/>windows10<br/>ios<br/>android<br/>facebook<br/>post-it<br/>post-it-alert</td>
199200
<td>A string that represent the theme used to render the box. The default theme depends on the browser user agent: <ul><li>mac: for Mac computer</li><li>windows10: for Windows computer and devices</li><li>ios: for iOS devices</li><li>android: for Android devices</li></ul>You can overrides this default value in your module configuration doing: <mark>mrFeedbackConfigProvider.defaultTheme = "facebook"</mark></td>
200201
</tr>
202+
<tr>
203+
<td>customClass</td>
204+
<td></td>
205+
<td>A string that represent a class to add at the box with tou can cutomize your mrFeedback.</td>
206+
</tr>
201207
<tr>
202208
<td>notificationType</td>
203209
<td>default<br/>warning<br/>danger<br/>info<br/>success<br/></td>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mr-feedback",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"description": "is a component which you can create and show a 'box feedback' to the user. You can set 'title' and 'message' to show, add button that clicked trigger function that you pass it, ecc...",
55
"main": "dist/mrFeedback.js",
66
"scripts": {

0 commit comments

Comments
 (0)