Commit Graph

2296 Commits

Author SHA1 Message Date
Adam Bradley
80a889e3d7 Merge branch 'pr/5336' into 2.0 2016-02-05 10:46:24 -06:00
Adam Bradley
702daa5686 docs(modal): example of modals and NavParams 2016-02-05 10:45:02 -06:00
Brandy Carney
d23df4280c docs(demos): add input and textarea demos
references driftyco/ionic-site#397
2016-02-05 11:42:56 -05:00
Adam Bradley
768676794f feat(actionsheet): disable clicking backdrop to dismiss 2016-02-05 09:50:14 -06:00
Adam Bradley
2710e34851 fix(alert): ensure keyup listener has been removed 2016-02-05 09:38:16 -06:00
Adam Bradley
53e014fb0b feat(alert): disable clicking backdrop to dismiss 2016-02-05 07:50:14 -06:00
Adam Bradley
b08794e44d Merge branch 'add-disable-backdrop-click-dismiss-to-alert' of https://github.com/3dd13/ionic into 3dd13-add-disable-backdrop-click-dismiss-to-alert 2016-02-05 07:36:14 -06:00
Stalin Pereira
16df0d8205 Documentation Update toolbar.ts
added missing quotes to documentation and changed property "placement" to "position"
2016-02-05 14:01:11 +05:30
Eddie Lau 3dd13
70c57beafc add an option to create alert which cannot be dismissed by clicking backdrop 2016-02-05 15:47:46 +08:00
Justin Willis
729fa9c773 Show how to access data passed into the modal
This addition shows how to access the data that is passed into the modal through the Modal.Create() method.
2016-02-04 23:16:16 -06:00
Adam Bradley
687a17bcd2 perf(tabs): render tab navbar at same time of tab content 2016-02-04 23:08:52 -06:00
Adam Bradley
fc49d1aa29 docs(menu): update menuToggle menuClose docs 2016-02-04 20:32:24 -06:00
Adam Bradley
9f906ae8ae docs(MenuController): update MenuController docs 2016-02-04 20:15:40 -06: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
Brandy Carney
856002ef0c docs(demos): add id API demo
references driftyco/ionic-site#397
2016-02-04 14:25:51 -05:00
Brandy Carney
cf759261ac docs(demos): add events API demo
references driftyco/ionic-site#397
2016-02-04 14:08:05 -05:00
Adam Bradley
a42836340a fix(menu): only close when open on enable change 2016-02-04 12:22:09 -06:00
Brandy Carney
f64bf4a81c docs(demos): add searchbar API demo
references driftyco/ionic-site#397
2016-02-04 12:49:45 -05:00
Brandy Carney
6ae164da59 docs(demos): prettify segment demo and fix API docs on it
references driftyco/ionic-site#397
2016-02-04 12:49:45 -05:00
Adam Bradley
633c11a742 chore(slides): remove slideChanged deprecated warning 2016-02-04 09:49:00 -06:00
Adam Bradley
60fdc5c2f3 perf(cards): remove translateZ from ion-card
Yes, oddly enough this makes a performance difference. The translateZ
was used as a trick to force ion-card’s rounded corners to take effect
on inner elements. However, on a page that has many ion-cards, it takes
relatively a lot of power on a low-end device to move them all during a
transition. It’s best to not put them on their own layer and let the
browser just move one thing.
2016-02-03 23:22:27 -06:00
Adam Bradley
155a43d770 chore(): fix typescript error 2016-02-03 19:41:23 -06:00
Brandy Carney
858855050d docs(demos): rename nav-push-pop to navigation and use it on the nav as well
references #5311
2016-02-03 18:04:13 -05:00
Brandy Carney
1e9a776944 docs(demos): add icon API demo
references #5311
2016-02-03 17:40:17 -05:00
Brandy Carney
59da895ea0 docs(demos): fix demos to have same class name and remove files that aren't needed anymore
references #5311
2016-02-03 14:26:25 -05:00
mhartington
f5a20d3dbb docs(config): add mode change example
Closes #5312
2016-02-03 13:51:45 -05:00
mhartington
7e06e6c563 docs(slides,page): update docs 2016-02-03 11:46:46 -05:00
Adam Bradley
72699dbbb4 fix(menu): fix scrolling page w/ side menus
Improved which angles should allow the side menu to open, depending if
it’s a left or right menu. Also check if the distance of the drag is
longer than a side menu would get. For example, scrolling vertically
for a long ways would have a long distance, but triggering a side menu
to open would be a short distance.

Also ensure that a side menu can always be closed incase something goes
wrong.

Closes #5272
2016-02-02 16:41:35 -06:00
Adam Bradley
de952e3cbb chore(): change source code console.log to console.debug 2016-02-02 16:41:35 -06:00
mhartington
53532c5280 docs(toolbar): update docs 2016-02-02 16:42:40 -05:00
mhartington
cd0829fd51 docs(toggle): update docs 2016-02-02 16:29:40 -05:00
mhartington
bcda08e68a docs(tabs): update docs 2016-02-02 16:01:10 -05:00
mhartington
8ed7da761f docs(tab): update tab docs 2016-02-02 15:50:37 -05:00
mhartington
35cb112e85 docs(slides, slide): update doc 2016-02-02 14:51:23 -05:00
mhartington
0fb297fe34 docs(select): update docs 2016-02-02 14:16:32 -05:00
mhartington
ed027fa951 docs(segment): update docs 2016-02-02 13:36:53 -05:00
mhartington
7f068a25ec docs(searchbar): update docs 2016-02-02 13:15:09 -05:00
mhartington
9ceb7f2fcc docs(scroll): update docs 2016-02-02 13:13:41 -05:00
mhartington
8c7bfc6da2 docs(pullToRefresh): update docs 2016-02-02 12:41:05 -05:00
mhartington
4d84ea2055 docs(radioGroup): update radio-groupt-docs 2016-02-02 12:21:36 -05:00
mhartington
7794c7269e docs(radio): update radio-button docs 2016-02-02 12:18:02 -05:00
mhartington
d44fb880a9 docs(option): update docs 2016-02-02 11:47:16 -05:00
Adam Bradley
c2cf3b0636 refactor(themes): adjusted scss structure for additional themes
Related #4967
2016-02-02 10:02:31 -06:00
Manu Mtz.-Almeida
637e792945 regression: not using nested selector 2016-02-02 15:58:22 +01:00
Manu Mtz.-Almeida
a7415f10cc Fixes border radius in full outline button 2016-02-02 15:49:17 +01:00
Adam Bradley
71c6078ac5 chore(action-sheet): clean up deprecated warning 2016-02-01 22:33:19 -06:00
Adam Bradley
843947933f docs(NavController): remove members from NavCtrl docs 2016-02-01 22:18:29 -06:00
mhartington
257247f9ee docs(navController): update docs 2016-02-01 23:05:05 -05:00
Adam Bradley
4cfe210a5a fix(input): copy custom attrs from ion-input to native input 2016-02-01 21:57:29 -06:00
mhartington
015361d5c0 docs(navbar): update docs 2016-02-01 22:46:11 -05:00