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
f5a20d3dbb
docs(config): add mode change example
...
Closes #5312
2016-02-03 13:51:45 -05:00
dbc681fb7c
docs(): hide methods not requiring docs
2016-01-27 14:27:36 -06:00
b3a7298a52
refactor(input): place inputs inside of ion-item
2016-01-27 08:09:37 -06:00
16f9931957
refactor(badge): add a directive for badges which adds the colors as a class
...
This makes it so we can add a class to the badge on a tab which will
show the right color.
References #5007
2016-01-23 12:41:56 -05:00
b8a56071d7
Config property should be documented as tabSubPages instead of tabSubPage.
2016-01-18 13:15:56 -05:00
ff10b3bb49
fix(navCtrl): add more states during transitions
2016-01-15 10:21:18 -06:00
100b1e79ae
chore(): fix Tabs types
2016-01-13 22:40:30 -06:00
88aad3f880
refactor(decorators): remove ConfigComponent
2016-01-11 22:51:54 -06:00
b79d6cc8ea
refactor(util): use Object.assign polyfill
2016-01-11 11:17:58 -06:00
747c5138c5
fix(platform): types
2016-01-11 09:56:19 -06:00
57e38aaf36
chore(): fix typescript errors
2016-01-10 13:38:47 -06:00
84f8e619b8
refactor(input): rename item-input dir to input
2016-01-09 23:40:14 -06:00
270fca0c50
feat(select): ion-select using alert radio/checkbox options
...
Closes #890 Closes #826 Closes #886
2016-01-08 16:26:07 -06:00
56921c5bcf
fix(backButton): do not include ion- in the back btn config
...
Closes #891
2016-01-07 23:11:46 -06:00
387f883be3
refactor(input): split TextInput and ItemInput components
...
Make it easier to start adding other inputs, like select
2016-01-07 12:29:04 -06:00
942bd9b93b
feat(platform): add language support methods
...
Related: #883
2016-01-07 10:36:44 -06:00
55f1167a4a
fix(providers): do not include ActionSheet
2016-01-04 15:54:48 -06:00
3315303b3e
fix(actionSheet): remove MD icon defaults
2016-01-04 12:47:03 -06:00
4203f9b179
Merge branch 'overlay-refactor'
2016-01-04 09:26:59 -06:00
da986a5fb0
feat(transition): pass isRTL in transition opts
2016-01-01 21:56:40 -06:00
0b4b8628bf
feat(platform): add isRTL() and body css class
2016-01-01 21:35:21 -06:00
4edf7b7cdd
Merge branch 'master' into overlay-refactor
2015-12-30 15:03:17 -06:00
e210eef3cb
docs(config): typo
2015-12-28 12:26:41 -06:00
c136d2143a
alert wip
2015-12-23 23:11:40 -06:00
98e4336c16
wip
2015-12-22 21:45:28 -06:00
829442dffe
chore(decorators): move decorators up one directory
2015-12-18 10:32:24 -06:00
b2fd889914
refactor(label): move label to its own folder and move mode specific styles for label to new files
...
closes #712
2015-12-17 16:20:10 -05:00
8e978f2902
docs(config): how to get and set keys
...
Closes #593
2015-12-16 17:47:42 -06:00
5ec73a6bf3
docs(config): fix config docs
2015-12-16 14:52:34 -05:00
cfe0d27924
docs(config): fix dgeni parsing error
2015-12-16 13:35:49 -06:00
068f3ceb29
Merge remote-tracking branch 'origin/master' into WIP-api-demos
2015-12-16 11:13:03 -06:00
adf62fdc41
docs(config): make ionicProviders private
2015-12-16 10:53:09 -06:00
f97e9eaa19
docs() id, content, bootstrap, item, item-sliding
2015-12-15 16:57:54 -05:00
ade88a92ed
docs(blur, config): api clean up
2015-12-15 11:48:03 -05:00
9b12ce3841
fix(attr): use pascalCase for config component
2015-12-15 09:56:20 -06:00
b0d685ea85
docs()
...
References #740
2015-12-14 18:13:29 -05:00
28d464c2e6
docs()
2015-12-14 15:06:06 -05:00
4024784b25
Merge branch 'master' into searchbar-fix
...
# Conflicts:
# ionic/components/searchbar/searchbar.ts
# ionic/components/searchbar/test/floating/main.html
2015-12-12 14:48:58 -05:00
216374f932
docs()
2015-12-11 15:38:09 -05:00
76122446d4
wip
2015-12-11 10:33:01 -06:00
5bb9aeb5df
docs(page): clean page docs up
2015-12-11 11:03:29 -05:00
5d6d9b9610
chore(upgrad): ng alpha52 and case-sensitive templates
2015-12-10 22:52:55 -06:00
ff8169cb0a
Merge branch 'master' into searchbar-fix
...
# Conflicts:
# ionic/components/searchbar/searchbar.ts
2015-12-10 17:55:44 -05:00
ab4ad905a8
refactor(searchbar): converting searchbar input to use a directive
...
references #666
2015-12-10 17:51:02 -05:00
d464d5cb1c
remove angular2/angular2 imports
2015-12-10 16:41:57 -06:00
bee68c1bad
Split decorators into separate files
...
Resolves circular ref with ConfigComponent
2015-12-10 16:39:56 -06:00
fd3b9ee03e
derp
2015-12-10 16:39:56 -06:00
0270be3305
fix blocking TS errors
2015-12-10 16:39:56 -06:00
7f94b33c54
refactor(toggle): renamed ion-switch to ion-toggle
2015-12-10 14:50:52 -06:00