Skip to content

Implement ActionItem (customView/actionView) #177

@NathanWalker

Description

@NathanWalker

I don't think this is possible with {N} + ng2 yet (unless there's an unknown trick to it):

<ActionBar>
  <ActionBar.actionItems>
    <ActionItem tap="navigate">
      <ActionItem.actionView>
        <StackLayout orientation="horizontal">
          <Label text="Green" color="green" />
          <Label text="Red" color="red" />
        </StackLayout>
      </ActionItem.actionView>
    </ActionItem>
  </ActionBar.actionItems>
</ActionBar>

This would also allow custom fonts (I think) to be used with ActionItems?
Would love to be able to use this on ActionItems: https://github.com/NathanWalker/nativescript-ng2-fonticon

Should be based on the implementation from here:
NativeScript/NativeScript#1554

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions