mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-06-30 06:12:08 -06:00
Update GUIDE.md
This commit is contained in:
parent
a88d894eb1
commit
bd35647fcf
1 changed files with 7 additions and 7 deletions
14
GUIDE.md
14
GUIDE.md
|
|
@ -363,6 +363,13 @@ Then attach it to a `button` or `a` element by passing in the name of the templa
|
|||
<button data-ion-modal="myModal">Open Modal</button>
|
||||
```
|
||||
|
||||
If you'd like to have another element dismiss the modal, add `data-dismiss=modal` to it. For example, you can create a close button as follows:
|
||||
```
|
||||
<button class="button button-positive" data-dismiss=modal>
|
||||
Close Modal
|
||||
</button>
|
||||
```
|
||||
|
||||
## Popups
|
||||
|
||||
You show alerts using the `ionPopup` component. This can be done as follows:
|
||||
|
|
@ -372,10 +379,3 @@ IonPopup.alert({title: 'title', subTitle: 'subTitle', template: 'some text to sh
|
|||
```
|
||||
|
||||
You can also use `IonPopup.confirm({})`, `IonPopup.prompt({})` and `IonPopup.close()`.
|
||||
|
||||
If you'd like to have another element dismiss the modal, add `data-dismiss=modal` to it. For example, you can create a close button as follows:
|
||||
```
|
||||
<button class="button button-positive" data-dismiss=modal>
|
||||
Close Modal
|
||||
</button>
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue