Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 474 Bytes

File metadata and controls

21 lines (16 loc) · 474 Bytes

Html Panel

to do

Examples

Advanced example needs a web api datasource with the following global function :

let result;
switch (options.hash['function']) {
    case "dateFormat":
        result = new Date(parseInt(text)).toISOString();
        break;
        default:
        const f = new Function('data', options.hash['function']);
        result = f(text);
    }

return result;