ricardoalcocer / actionbarextras

Titanium Android Native Module that exposes ActionBar features not exposed by the Titanium SDK
MIT License
149 stars 60 forks source link

Actionbarextras menuItem visible/not visible. #115

Closed Angelk90 closed 6 years ago

Angelk90 commented 7 years ago

I'm having a problem, I have in the MenuItem fields menu. One of these fields, normally should not be visible. Only under certain conditions will have to be. Could you tell me how I can have access to the camp.

.xml <MenuItem id = "profile" /> .tss

"#profile [Android platform =]": {
  title: "Profile",
     icon: "/global/profile.png"
     showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS,
     visible: false
}

$ .profile.visible = True; Error message: Can not set property visible of undefined.

Thank you.