@AuraEnabled()
public static Map<String, Object> test() {
Map<String, Object> scc = new Map<String, Object>();
try {
//CODE
scc.put('key', value);
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
return scc;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter