Zum Hauptinhalt springen

Einstellungen als JSON-Objekt

Am einfachsten kann die Konfiguration als JSON-Objekt übergeben werden.

context.enableModules();
const { TableMonitor } = require("ou.sp.gadget.TableMonitor");

context.returnValue = TableMonitor.show({
rows: [{
icon: "entypo:check",
id: "1234"
},
{
icon: "entypo:check",
id: "12345"
},
{
icon: "entypo:check",
id: "123456"
}
],
columns: {
icon: {
type: "icon",
label: "",
attributes: {
style: "width: 20px"
}
},
id: {
label: "Kreditorennummer",
required: true,
attributes: {
class: 'cell-id'
}
}
}
})