Hello,
I have added add, remove actions and based on from where i call it, i set the visibility to true or false.
But the buttons are visible no matter if the visible property is set to false in the xml page.
<actions>
   <action id="add"
            openType="NEW_TAB"/>
    <action id="remove"/>
</actions>
<buttonsPanel id="buttonsPanel"
              alwaysVisible="false">
    <button id="addBtn"
            action="actualValuesTable.add"
            visible="false"/>
    <button id="removeBtn"
            action="actualValuesTable.remove"
            visible="false"/>
</buttonsPanel>
And in the java file i have this code:
@Override
public void init(Map<String, Object> params) {
    super.init(params);
    if (something) {
        addBtn.setVisible(true);
        removeBtn.setVisible(true);
    }
}
Am i missing something here? The buttons are always visible, need to hide them and show them only when some condition is met.
Regards,
Adnan