@abcnews/aunty-helper 中文文档教程
Aunty Helper
一个屏幕小助手,可以指导人们使用您的插件。
Usage
require('@abcnews/aunty-helper');
// Pass in a message
if (someErrorHappened()) {
window.__AUNTY_HELPER('Some error message');
}
// or pass in a callback that returns the error message
window.__AUNTY_HELPER(function() {
if (someErrorHappened()) {
return 'Some error message';
}
});
Authors
- Nathan Hoad - hoad.nathan@abc.net.au
Aunty Helper
A little on-screen helper to guide people using your plugin.
Usage
require('@abcnews/aunty-helper');
// Pass in a message
if (someErrorHappened()) {
window.__AUNTY_HELPER('Some error message');
}
// or pass in a callback that returns the error message
window.__AUNTY_HELPER(function() {
if (someErrorHappened()) {
return 'Some error message';
}
});
Authors
- Nathan Hoad - hoad.nathan@abc.net.au