Render Functions
Here is a list of all render function types.
| Render Function | What it does | Sample values | JSON |
|---|---|---|---|
| Set Box Property From Attribute | Uses the value entered into the Lens in the Edit Box Form - this is free form text | free form text | {boxPropertyKey": "text"} |
| Set Box Child Layout Property | This 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 Type | vertical, horizontal, grid | |
| Set Box Text Property | This gives all the boxes the same Text Value for the Box Type or for the Choice Selection | free form text | |
| Set Box Text Color Property | This 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 Type | Colour Palette, RGB or Hex | |
| Set Box Text Size (in pixels) Property | This sets the Box Text font size in pixels for the Box Type or for the Choice Selection | 14,17,21 | |
| Set Box Text Sizing Property | This sets the box text size for the Box Type. | 10, 12, 14, 16 | |
| Set Box Text Alignment Property | This sets the text of the Box to either the left, center or right. If textIsVertical = True then Top, Center or Bottom | start, center, end | |
| Set Box Text Alignment Padding Property | This sets the "margin" from the start, end, top or bottom of the Box. The default value is 8 | 8, 20, 30 | |
| Set Box Text Is Vertical | This set the text of the Box to be vertical or horzizontal for the Box Type or for the Choice Selection | true, false | |
| Set Box Font Family Property | This sets the text of the Box font for the Box Type or for the Choice Selection | Open Sans, Calibri, Arial | |
| Set Box Font Style Property | This sets the style of your choosen Font Family | normal, bold | |
| Set Box Font Weight Property | This sets the font to be bold or normal for the Box Type or for the Choice Selection | bold, normal | |
| Set Box Background Color Property | This sets the Box Background Color for the Box Type or for the Choice Selection | Colour Palette, RGB or Hex | |
| Set Box Background Image Property | This 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 Property | This sets the box position for the image above | left, right, bottom, center, top right, bottom right, top left etc | |
| Set Box Backround Image Size Property | This sets the size of the background image | 30%, 50%, 70% etc | |
| Set Box Background Image Repeat Property | This determines if the image is to repeat within the Box | repeat, no-repeat | |
| Set Box Border Color Property | This sets the Box Border Color for the Box Type or for the Choice Selection | Colour Palette, RGB or Hex | |
| Set Box Border Radius Property | This sets the Box Border Radius (edges) of the Box for the Box Type or for the Choice Selection | 5, 9, 25 | |
| Set Box Border Size (in pixels) Property | This sets the Border Size in Pixels for the Box Type or for the Choice Selection | 1, 2, 3, 4, 5 | |
| Set Box Border Style Property | This sets the Box Border Style for the Box Type or for the Choice Selection | dashed, dotted, groove, double, ridge, inset, offset, solid | |
| Set Box Badge Background Color Property | This sets the Box Badge Background Color Property, Hex # values only | #FF0000, #0000FF | |
| Set Box Badge Text Color Property | This sets the Box Badge Background Text Color Property, Colour Palette, RGB or Hex | Whirte, #FF0000, Black, #000000 | |
| Set Box Badge Text Property | This sets the Text for the Box - THIS MUST BE SET FIRST. It is only a single character | L, M G | |
| Set Box Badge1.. Badge32 Property | This 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 Property | This 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 Property | This applies a setting from the Style Guide to a Box Type. A look up list is provided directly from the Box Styles, Style Guide | Teal | |
| Set Box TypeWriter Mode Cols Property | The 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 Property | This 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 }"}} |