AnsweredAssumed Answered

How to set one "Label" widget per line in VerticalWidgets?

Question asked by npavlov on Feb 27, 2018
Latest reply on Feb 28, 2018 by npavlov

I want to have several lines of labels (alfresco/html/Label widget). But if I create such Aikau model, it doesn't work correct (see attached image – it works for Logo widgets, but all text is on one line):


model.jsonModel = {
    widgets: [
        {
            name: "alfresco/layout/VerticalWidgets",
            "config": {
                "widgetMarginTop": 10,
                "widgetMarginBottom": 10,
                "widgets": [
                    {
                        "name": "alfresco/logo/Logo"
                    },
                    {
                        "name": "alfresco/logo/Logo"
                    },
                    {
                        name: "alfresco/html/Label",
                        config: {
                            label: "text1 text2"
                        }
                    },
                    {
                        name: "alfresco/html/Label",
                        config: {
                            label: "text3 text4"
                        }
                    }
                ]
            }
        }
    ]
};

Attachments

Outcomes