Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (32 loc) · 752 Bytes

page-actions.md

File metadata and controls

39 lines (32 loc) · 752 Bytes

< Back to Components List

Page actions

polaris-page-actions implements the Polaris Page actions component.

Examples

Primary action only:

{{polaris-page-actions
  primaryAction=(hash
    text="Save"
    onAction=(action "save")
  )
}}

Primary action with two secondary actions (using ember-array-helper):

{{polaris-page-actions
  primaryAction=(hash
    text="Save"
    onAction=(action "save")
  )
  secondaryActions=(array
    (hash
      text="Delete"
      onAction=(action "delete")
    )
    (hash
      text="Cancel"
      onAction=(action "cancel")
    )
  )
}}