AnsweredAssumed Answered

aikau visibilityConfig for alfButton

Question asked by redraccoon on Feb 24, 2017
Latest reply on Mar 14, 2017 by redraccoon

Hello,

 

visibility config is working fine with my textBoxes

 

**********************************

this.textBox = new TextBox({
label: "label",
fieldId : "textBoxId",
visibilityConfig: {
initialValue: false,
      rules: [
                  {
                     targetId: "statutId",
                     is: ["Rejeté Illisible"]
                  }
               ]
                     }
});

********************************

But it's not working with my alfButton 

 

 

*****************************************

var btnIllisible = new AlfButton({

visibilityConfig: {
      rules: [
                  {
                     targetId: "statutId",
                     is: ["En cours", "Rejeté Inexploitable" ],
                     }
               ]
},
label: "label",
onClick: lang.hitch(this, '_onIllisible'),

});

********************************************

 

 

Do the alfButtons use different mechanics ?

Outcomes