Skip to content

Can't access args.object.page from ActionBar ActionItem tap event #1283

Closed

Description

@maknz

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.

Activity

  1. added this to the milestone on Dec 22, 2015
  2. vakrilov commented on Dec 22, 2015

    @vakrilov
    Contributor

    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.

  3. added and removed
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Jan 18, 2016
  4. lock commented on Aug 30, 2019

    @lock

    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.

  5. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions