You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't access args.object.page from ActionBar ActionItem tap event #1283
Normally when you have an onTap event on a page, you can access the page object using args.object.page. This is not possible when the tap handler is for an ActionItem in an ActionBar, where page does not exist on the args.object.
Hi @maknz
The reason for this is that the ActionItem does not actually inherit form View and there is no page property. You can obtain a reference to the page by calling args.object.actionBar.page.
However it is reasonable that the ActionItem has property page for the sake of consistency.
Activity
vakrilov commentedon Dec 22, 2015
Hi @maknz
The reason for this is that the ActionItem does not actually inherit form
Viewand there is nopageproperty. You can obtain a reference to the page by callingargs.object.actionBar.page.However it is reasonable that the
ActionItemhas propertypagefor the sake of consistency.lock commentedon Aug 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.