Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    buttonItem is shows despite visible: false

    Hi there,

    If I'm creating a buttonItem I cannot declare it as not visible by default.

    This should be possible by looking at the docs
    This is reproduceable with all current browsers and the latest smartclient 10.1.

    Code:
    isc.VLayout.create({
        "ID" : "layout",
        "width" : "300",
        "height" : "100%",
        "hideUsingDisplayNone" : false,
        "leaveScrollbarGap" : false,
        "members" :
        [isc.DynamicForm.create({
                "ID" : "form",
                "hideUsingDisplayNone" : false,
                "readOnlyDisplay" : "static",
                "fields" :
                [{
                        "type" : "toolbar",
                        "readOnlyDisplay" : "static",
                        "buttons" :
                        [{
                                "name" : "buttonItem",
                                "title" : "Hidden Button",
                                "type" : "button",
                                "visible" : false,
                                "readOnlyDisplay" : "static"
                            }
                        ],
                    }
                ],
            })
        ]
    })
    Best regards

    #2
    The "buttons" array within a Toolbar is not an Array of ButtonItem, but rather of Button, so the docs you're looking at aren't applicable.

    To have individual control over Button visibility, use separate ButtonItems, not a Toolbar.

    Comment

    Working...
    X