Skip to main content

Render Functions

Here is a list of all render function types.

Render FunctionWhat it doesSample valuesJSON
Set Box Property From AttributeUses the value entered into the Lens in the Edit Box Form - this is free form textfree form text{
boxPropertyKey": "text"
}
Set Box Child Layout PropertyThis tells the layout engine to set the children boxes of this Box type to be Vertical, Grid (uses TypeWriter setting) or Horizontal, for the Box Typevertical, horizontal, grid
Set Box Text PropertyThis gives all the boxes the same Text Value for the Box Type or for the Choice Selectionfree form text
Set Box Text Color PropertyThis sets the Text Color for all Boxes within a Box Type ( or for the Choice Selection) - you can pick from a wheel, RBG or Hex Color Codes for the Box TypeColour Palette, RGB or Hex
Set Box Text Size (in pixels) PropertyThis sets the Box Text font size in pixels for the Box Type or for the Choice Selection14,17,21
Set Box Text Sizing PropertyThis sets the box text size for the Box Type.10, 12, 14, 16
Set Box Text Alignment PropertyThis sets the text of the Box to either the left, center or right. If textIsVertical = True then Top, Center or Bottomstart, center, end
Set Box Text Alignment Padding PropertyThis sets the "margin" from the start, end, top or bottom of the Box. The default value is 88, 20, 30
Set Box Text Is VerticalThis set the text of the Box to be vertical or horzizontal for the Box Type or for the Choice Selectiontrue, false
Set Box Font Family PropertyThis sets the text of the Box font for the Box Type or for the Choice SelectionOpen Sans, Calibri, Arial
Set Box Font Style PropertyThis sets the style of your choosen Font Familynormal, bold
Set Box Font Weight PropertyThis sets the font to be bold or normal for the Box Type or for the Choice Selectionbold, normal
Set Box Background Color PropertyThis sets the Box Background Color for the Box Type or for the Choice SelectionColour Palette, RGB or Hex
Set Box Background Image PropertyThis sets the box Background image and needs to be from a secure (https) site.https://www.myenterpriselens.com/images/Decision.png
Set Box Background Image Position PropertyThis sets the box position for the image aboveleft, right, bottom, center, top right, bottom right, top left etc
Set Box Backround Image Size PropertyThis sets the size of the background image30%, 50%, 70% etc
Set Box Background Image Repeat PropertyThis determines if the image is to repeat within the Boxrepeat, no-repeat
Set Box Border Color PropertyThis sets the Box Border Color for the Box Type or for the Choice SelectionColour Palette, RGB or Hex
Set Box Border Radius PropertyThis sets the Box Border Radius (edges) of the Box for the Box Type or for the Choice Selection5, 9, 25
Set Box Border Size (in pixels) PropertyThis sets the Border Size in Pixels for the Box Type or for the Choice Selection1, 2, 3, 4, 5
Set Box Border Style PropertyThis sets the Box Border Style for the Box Type or for the Choice Selectiondashed, dotted, groove, double, ridge, inset, offset, solid
Set Box Badge Background Color PropertyThis sets the Box Badge Background Color Property, Hex # values only#FF0000, #0000FF
Set Box Badge Text Color PropertyThis sets the Box Badge Background Text Color Property, Colour Palette, RGB or HexWhirte, #FF0000, Black, #000000
Set Box Badge Text PropertyThis sets the Text for the Box - THIS MUST BE SET FIRST. It is only a single characterL, M G
Set Box Badge1.. Badge32 PropertyThis lets you place a badge anywhere within a Box and it only requires text or free form input values.
THIS IS FOR VALUE TYPE = TEXT ONLY!
{
boxPropertyKey": "text
}
Set Box Layout Weight PropertyThis sets the % allocation to the Box, amongst its' peers. This value must be in quotes - It applies to the Box Type"40"
Set Box Styles PropertyThis applies a setting from the Style Guide to a Box Type. A look up list is provided directly from the Box Styles, Style GuideTeal
Set Box TypeWriter Mode Cols PropertyThe setting is for the layout engine - to tell it how many boxes you would like to see on a row before it adds a new row.The Direction Controller must be on GRID setting "#" for this to work
Map Choice Attribute to Box PropertyThis setting is used, where the values are not Text but a lookup list (Choice){
"Mature": {
"boxPropertyKey": "badge1",
"boxPropertyValue": "{ \"text\": \"M\", \"horizontalPositionInPercent\": 0, \"verticalPositionInPercent\": 2, \"verticalAlignment\": \"none\", \"horizontalAlignment\": \"none\",\"borderRadius\": 3, \"backgroundColor\": \"#9104F8\", \"textColor\": \"#FFFFFF\", \"width\": 30, \"height\": 16, \"fontFamily\": \"Arial\", \"textSizeInPixels\": 13 }"
}
}