Disable/enable an ActionItem


#1

Hi,

is there a way to disable an ActionItem so that it is grayed out and doesn’t react to taps (preferable while using Angular). I wanted to display a ‘Save’ button in the top right action bar but only enable it when the input is valid. Both Android and IOS support that functionality natively but couldn’t find a way to do that with nativescript.


#2

You can do something like this,


#3

Thanks @manojdcoder, that solves the problem