Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Modal Dialogs #2

Open
6 tasks
cyk opened this issue Jun 17, 2017 · 0 comments
Open
6 tasks

Modal Dialogs #2

cyk opened this issue Jun 17, 2017 · 0 comments

Comments

@cyk
Copy link
Owner

cyk commented Jun 17, 2017

  • Dialog
  • Header
  • Header Title
  • Body
  • Footer
  • Footer Button

Example:

<gm::dialog as |dialog|>
    {{#dialog.header as |header|}}
        {{#header.title tagName="h2"}}Use Google's location service?{{/header.title}}
    {{/dialog.header}}
    {{#dialog.body}}
        Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
    {{/dialog.body}}
    {{#dialog.footer as |footer|}}
        {{#footer.button onclick=dialog.cancel}}Action 1{{/footer.button}}
        {{#footer.button onclick=dialog.accept}}Action 2{{/footer.button}}
    {{/dialog.footer}}
</gm::card>

Reference:
https://material.io/components/web/catalog/dialogs/

Blocked by:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant