Commit Graph

84 Commits

Author SHA1 Message Date
mhartington
019009a3e2 chore(): fix bad types for docs 2016-02-12 16:36:27 -05:00
Adam Bradley
acf12cdd15 refactor(menu): inject MenuController to control app menus
Menu has been improved to make it easier to open, close, toggle and
enable menus.
Instead of injecting `IonicApp` to find the menu component, you now
inject
`MenuController`.

Was:

```
constructor(app: IonicApp) {
  this.app = app;
}
openMenu() {
  this.app.getComponent('leftMenu').close();
}
```

Now:

To programmatically interact with any menu, you can inject the
`MenuController`
provider into any component or directive. This makes it easy get ahold
of and
control the correct menu instance. By default Ionic will find the app's
menu
without requiring a menu ID. An id attribute on an `<ion-menu>` is only
required
if there are multiple menus on the same side. If there are multiple
menus, but
on different sides, you can use the name of the side to get the correct
menu

If there's only one menu:

```
constructor(menu: MenuController) {
  this.menu = menu;
}
openMenu() {
  this.menu.close();
}
```

If there is a menu on the left and right side:

```
toggleMenu() {
  this.menu.toggle('left');
}
```

If there are multiple menus on the same side:

```
<ion-menu id="myMenuId" side="left">...</ion-menu>
<ion-menu id="otherMenuId" side="left">...</ion-menu>

closeMenu() {
  this.menu.close('myMenuId');
}
```
2016-02-04 16:47:05 -06:00
Eddie Lau 3dd13
07953672f5 add more types to function parameters and return type 2016-01-19 16:44:46 +08:00
Tim Lancina
6e9ac500c2 chore(): fix IonicApp types 2016-01-13 23:06:13 -06:00
Adam Bradley
95501a1e86 fix(tap): do not fire tap click while scrolling
Fixes #681
2016-01-04 22:28:49 -06:00
mhartington
b0d685ea85 docs()
References #740
2015-12-14 18:13:29 -05:00
Tim Lancina
d464d5cb1c remove angular2/angular2 imports 2015-12-10 16:41:57 -06:00
Adam Bradley
85e773b56b refactor(navCtrl): move async parts of transition into their own fn 2015-12-01 19:59:21 -06:00
Adam Bradley
b01301b3b2 fix(zone): ensure rAFs are firing outside of zone 2015-11-30 22:46:43 -06:00
Adam Bradley
9dde122d4f refactor(clickBlock): add to dom on init 2015-11-29 01:14:51 -06:00
Adam Bradley
424800a3c9 fix(transition): update disabling transitions 2015-11-24 14:02:40 -06:00
Adam Bradley
002e5e86a6 perf(): raf updates 2015-11-20 20:24:21 -06:00
Adam Bradley
19ff9e0a2c perf(raf): use rafFrames instead of fastdom 2015-11-20 14:10:44 -06:00
Adam Bradley
00f9611e71 feat(clickBlock): enable click block only on iOS 2015-11-19 11:23:41 -06:00
Adam Bradley
406fa18c5a perf(ripple): ripple perf improvements 2015-11-10 14:42:35 -06:00
Tim Lancina
3648b48192 IonicApp api doc
Closes #255.
2015-10-06 16:29:05 -05:00
Adam Bradley
3324f3cc90 refactor(overlay): actionsheet/popup 2015-10-04 22:35:54 -05:00
Adam Bradley
dfe19a962d use title service 2015-10-04 11:45:32 -05:00
Adam Bradley
2b86705f54 bootstrap refactor wip 2015-10-04 00:20:41 -05:00
Adam Bradley
5b0eda5be1 refactor(config): get/set/settings and unit tests 2015-10-02 15:23:08 -05:00
Max Lynch
2f446f182f :derp: console.log 2015-09-30 17:29:45 -05:00
Max Lynch
bb74cdc717 feat(scroll): statusbar tap scroll to top 2015-09-30 17:26:16 -05:00
Max Lynch
8ef7a67f55 Removed alert 2015-09-30 16:59:31 -05:00
Max Lynch
b66fc45a20 chore(logs): removed bad console error 2015-09-30 15:57:05 -05:00
Max Lynch
72658bd970 feat(plugin): Network Information and global offline/online events 2015-09-28 15:03:20 -05:00
Adam Bradley
26dcf4c3a7 chore(ripple): updates 2015-09-26 21:58:16 -05:00
Max Lynch
c3ea116046 feat(i18n): translation service 2015-09-25 11:56:54 -05:00
Tim Lancina
db6c7b7283 feat(nav): add NavRegistry 2015-09-24 17:34:47 -06:00
Adam Bradley
88eaa45f4c refactor(navbar): improved navbar transitions 2015-09-23 23:17:06 -05:00
Adam Bradley
1a48cbec96 fix(activator): ensure links active during transition 2015-09-23 20:32:46 -05:00
Max Lynch
27373e0448 feat(events): pub/sub event system 2015-09-23 13:43:38 -05:00
Tim Lancina
8f76057147 derp 2015-09-23 10:50:48 -05:00
Tim Lancina
d51882e524 chore(IonicApp): update description 2015-09-23 10:47:16 -05:00
Adam Bradley
ffb43a4e52 fix(bootstrap): ready function if body not ready
Closes #156
2015-09-22 09:11:25 -05:00
Adam Bradley
88c547c535 refactor(activator): ripple activator 2015-09-21 13:48:58 -05:00
Adam Bradley
f704cc3e97 rename ActionMenu to ActionSheet 2015-09-17 23:41:09 -05:00
Adam Bradley
2ecde315f2 fix(isEnabled): do not disable during menu close 2015-09-17 21:55:53 -05:00
Adam Bradley
5fbc142dae swipe back refactor 2015-09-17 16:13:51 -05:00
Adam Bradley
cbf990f4cf error when same id registered
Closes #123
2015-09-16 12:32:17 -05:00
Adam Bradley
d25ce946f6 disable :hover on touch devices 2015-09-14 22:27:09 -05:00
Adam Bradley
41f2942fe7 improve css deactivate fallback 2015-09-14 21:43:55 -05:00
Adam Bradley
722dddbbb7 improve click block, onKeyboardClose 2015-09-14 21:06:53 -05:00
Adam Bradley
28c8d001e6 cache window dimensions 2015-09-13 22:34:23 -05:00
Adam Bradley
5441c293cd do not throw error during id register 2015-09-13 20:42:17 -05:00
Adam Bradley
ebe2a836bc fix menu component unregister 2015-09-13 20:01:11 -05:00
Adam Bradley
f7a3a2436b menu-toggle updates 2015-09-13 19:43:35 -05:00
Adam Bradley
2c0d7005b0 only allow one component key 2015-09-13 14:11:59 -05:00
Adam Bradley
8fbf53e1b7 rename Platform to IonicPlatform
Make IonicPlatform an injectable. Closes #99
2015-09-13 00:39:19 -05:00
Tim Lancina
3634a1d0ec docs todo 2015-09-11 14:28:37 -05:00
Adam Bradley
b31ab1b0be feat(aside): reveal/overlay aside using Animation 2015-09-10 20:54:40 -05:00