Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-Message

  • singleton
  • easy usage

Configuration:

  • button {String} a button label (default OK)

Usage:

SETTER('message', 'warning', 'Some warning');
SETTER('message', 'success', 'Some success message');
SETTER('message', 'info', 'Some info message');

Great for AJAX responses:

This component implements FUNC.messageresponse function and you can use it in AJAX:

// FUNC.messageresponse(success_message, [success_callback]);
AJAX('GET /api/something', FUNC.messageresponse('Profile has been saved successfully'));

Author

You can’t perform that action at this time.