Feedback - Voliware/Template GitHub Wiki

Green Means Good

Feedback is a simple Template extension that provides information to a user about an action. Feedback elements are hidden by default, but will slide down when setFeedback is called. setFeedback is the only public function and takes three arguments

  • cls - the class to apply to the feedback element
  • text - the text to show
  • icon - an icon to show

Example

var feedback = new Feedback()
	.appendTo('body')
	.setFeedback('warning', 'Operation Failed')

Feedback is extended by BootstrapFeedback in the Bootstrap Template Library to provide a much more enjoyable UI experience.