How can I add a label to a page?

Question

How can I add a label to a section page? We can add columns when configuring section page settings. What about adding a string with a fixed label in it and not a column, can we add it? 

Answer

In the configurator, in your section page schema, add a localized string and the following code in the diff property:

{
    "operation": "insert",
    "name": "UsrTestLabel",
    "values": {
        "layout": {
            "column": 12,
            "row": 0,
            "colSpan": 12,
            "rowSpan": 1
        },
        "itemType": Terrasoft.ViewItemType.LABEL,
        "caption": {
            "bindTo": "Resources.Strings.UsrTestLabelString"
        }
    },
    "parentName": "Header",
    "propertyName": "items"
},

The "layout" block describes the element location and size.

Like 0

Like

Share

2 comments

hi,

do you have the code to make the custom label has different css / style from  default css .t-label ?

thank you

Dear Antonius,

Please find more information in the article by the link below:



https://community.bpmonline.com/questions/how-add-custom-style-control-…



Best regards,

Norton

Show all comments