Skip to content

Commit 45d7ca7

Browse files
committed
Release 0.2.3
Added option `closeText` to pass a string to the close button of the box. Is visible only with the option `close:true` and with the theme that expect a close button with a text.
1 parent ea2a138 commit 45d7ca7

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# mrFeedback - 0.2.2
1+
# mrFeedback - 0.2.3
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...
44

55
## Installation
6-
* Download the latest release: [v0.2.1](https://github.com/teorossi82/mrFeedback/archive/master.zip)
6+
* Download the latest release: [v0.2.3](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.3
22+
* Added option `closeText` to pass a string to the close button of the box. Is visible only with the option `close:true` and with the theme that expect a close button with a text.
23+
2124
v0.2.2
2225
* With the option `modal:true` the box is rendered in the middle of the window. With this option the animation is disabled.
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.2",
3+
"version": "0.2.3",
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.2
2+
mrFeedback v0.2.3
33
(c) 2010-2016 Matteo Rossi, https://it.linkedin.com/in/matteorossi2,
44
License: MIT
55
*/
@@ -91,7 +91,7 @@
9191
'</div>' +
9292
'</div>' +
9393
'<div class="button-feedback button-close" ng-if="mrFeedback.feedback.close" ng-click="mrFeedback.close()">' +
94-
'Close' +
94+
'{{mrFeedback.feedback.closeText || "Close"}}' +
9595
'</div>' +
9696
'</div>' +
9797
'</div>' +

dist/mrFeedback.js

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

example/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
theme:"ios",
3333
modal:true,
3434
close: true,
35+
closeText:"Chiudi",
3536
fnClose:{
3637
func:functionClose,
3738
params:["Ok!"]

index.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h4>A simple component to create box feedback wich you can:</h4>
5656
theme:"ios",
5757
modal:true, /*with modal:true the animation option is disabled*/
5858
close: true,
59+
closeText:"Chiudi",
5960
fnClose:{
6061
func:functionClose,
6162
params:["Ok!"]
@@ -201,15 +202,20 @@ <h3>Options Configuration <small>Here are the keys that you can use in the optio
201202
<td>fade<br/>zoom<br/>slide-left<br/>slide-top<br/>flip<br/></td>
202203
<td>A string that represent the animation used to open and close the box. The default value is <mark>"fade"</mark>. You can overrides this default value in your module configuration doing: <mark>mrFeedbackConfigProvider.defaultAnimation = "zoom"</mark>. With modal:true the animation option is disabled.</td>
203204
</tr>
205+
<tr>
206+
<td>modal</td>
207+
<td>true<br/>false</td>
208+
<td>A boolean use to open the box in modal state (with a layer that block interaction with other element). With modal:true the animation option is disabled.</td>
209+
</tr>
204210
<tr>
205211
<td>close</td>
206212
<td>true<br/>false</td>
207213
<td>A boolean use to show or not the standard close button.</td>
208214
</tr>
209215
<tr>
210-
<td>modal</td>
211-
<td>true<br/>false</td>
212-
<td>A boolean use to open the box in modal state (with a layer that block interaction with other element). With modal:true the animation option is disabled.</td>
216+
<td>closeText</td>
217+
<td></td>
218+
<td>A string that represent the text visible in the close button. </td>
213219
</tr>
214220
<tr>
215221
<td>fnClose</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.2",
3+
"version": "0.2.3",
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)