Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.widgets(vlData.map(function (row) {
return new EntityCard()
.icon("")
.title(row[0])
.description("sum: " + (row[1] + row[2]))
.iconColor("#000")
.backgroundShape("rect")
.backgroundColorFill("#c8d6e5")
.backgroundColorStroke("#576574")
;
}))
);
.title("Surface")
.menu(menuList)
.content(new Text()
.text("Hello\nand\nWelcome!")
));
break;
case ResizeSurface:
renderMedium(new ResizeSurface()
.title("Resize Me")
.menu(menuList)
.content(new Text()
.text("I\nam\nResizale!")
));
break;
case EntityCard:
renderMedium(new EntityCard()
.icon("")
.iconDiameter(28)
.iconPaddingPercent(0)
.title("SomeTitle")
.titleFontSize(28)
.titleColor("#ecf0f1")
.description("SomeDescription")
.descriptionColor("#ecf0f1")
.iconColor("#ecf0f1")
.backgroundShape("rect")
.backgroundColorFill("#2980b9")
.backgroundColorStroke("#2c3e50")
.annotationIcons([
{ faChar: "A", image_colorFill: "#2c3e50", shape_colorFill: "#f1c40f", shape_colorStroke: "none" },
{ faChar: "B", image_colorFill: "#2c3e50", shape_colorFill: "#e67e22", shape_colorStroke: "none" },
{ faChar: "C", image_colorFill: "#2c3e50", shape_colorFill: "#e74c3c", shape_colorStroke: "none" }
import { EntityCard } from "@hpcc-js/common";
new EntityCard()
.annotationIcons([
{ faChar: "A", image_colorFill: "#2c3e50", shape_colorFill: "#f1c40f", shape_colorStroke: "none" },
{ faChar: "B", image_colorFill: "#2c3e50", shape_colorFill: "#e67e22", shape_colorStroke: "none" },
{ faChar: "C", image_colorFill: "#2c3e50", shape_colorFill: "#e74c3c", shape_colorStroke: "none" },
])
.target("target")
.icon("")
.iconDiameter(55)
.iconPaddingPercent(0)
.title("Hello\nEntityCard")
.titleFontSize(28)
.titleColor("#ecf0f1")
.description("This is an EntityCard description")
.descriptionColor("#ecf0f1")
.iconColor("#ecf0f1")
.backgroundShape("rect")
.widgets(data.map(row=>{
return new EntityCard()
.icon("")
.title(row[0])
.description('sum: '+(row[1] + row[2]))
.iconColor("#000")
.backgroundShape("rect")
.backgroundColorFill("#c8d6e5")
.backgroundColorStroke("#576574")
;
}))
.target("target")
.widgets(data.map(row=>{
return new EntityCard()
.icon("")
.title(row[0])
.description('sum: '+(row[1] + row[2]))
.iconColor("#000")
.backgroundShape("rect")
.backgroundColorFill("#c8d6e5")
.backgroundColorStroke("#576574")
;
}))
.target("target")