Constructor
new Feedback(optionsopt)
Constructor
Parameters:
Name |
Type |
Attributes |
Description |
options |
object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Description |
struct |
object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
$wrapper |
string
|
<optional>
|
'.feedback'
|
|
$text |
string
|
<optional>
|
'.feedback-text'
|
|
$icon |
string
|
<optional>
|
'.feedback-icon'
|
|
$close |
string
|
<optional>
|
'button[name="close"]'
|
|
|
|
- Source:
Extends
Methods
_animateFeedback(cls, text, iconopt) → {Feedback}
Set the feedback with animation
Parameters:
Name |
Type |
Attributes |
Description |
cls |
string
|
|
wrapper class to set |
text |
jQuery
|
string
|
|
text to show |
icon |
jQuery
|
string
|
<optional>
|
icon to show |
- Source:
Returns:
-
Type
-
Feedback
_setClass(cls) → {Feedback}
Set the class of the feedback.
Automatically removes other "feedback-" classes
and prepends "feedback-" to the new class
Parameters:
Name |
Type |
Description |
cls |
string
|
the feedback- class to set |
- Source:
Returns:
-
Type
-
Feedback
setFeedback(cls, text, iconopt) → {Feedback}
Set the feedback and show the wrapper if
it is hidden, or animate it if it is changing
Parameters:
Name |
Type |
Attributes |
Description |
cls |
string
|
|
wrapper class to set |
text |
jQuery
|
string
|
|
text to show |
icon |
jQuery
|
string
|
<optional>
|
icon to show |
- Source:
Returns:
-
Type
-
Feedback