2289 Commits

Author SHA1 Message Date
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
16df0d8205 Documentation Update toolbar.ts
added missing quotes to documentation and changed property "placement" to "position"
2016-02-05 14:01:11 +05:30
70c57beafc add an option to create alert which cannot be dismissed by clicking backdrop 2016-02-05 15:47:46 +08:00
687a17bcd2 perf(tabs): render tab navbar at same time of tab content 2016-02-04 23:08:52 -06:00
fc49d1aa29 docs(menu): update menuToggle menuClose docs 2016-02-04 20:32:24 -06:00
9f906ae8ae docs(MenuController): update MenuController docs 2016-02-04 20:15:40 -06:00
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
856002ef0c docs(demos): add id API demo
references driftyco/ionic-site#397
2016-02-04 14:25:51 -05:00
cf759261ac docs(demos): add events API demo
references driftyco/ionic-site#397
2016-02-04 14:08:05 -05:00
a42836340a fix(menu): only close when open on enable change 2016-02-04 12:22:09 -06:00
f64bf4a81c docs(demos): add searchbar API demo
references driftyco/ionic-site#397
2016-02-04 12:49:45 -05:00
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
633c11a742 chore(slides): remove slideChanged deprecated warning 2016-02-04 09:49:00 -06:00
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
155a43d770 chore(): fix typescript error 2016-02-03 19:41:23 -06:00
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
1e9a776944 docs(demos): add icon API demo
references #5311
2016-02-03 17:40:17 -05:00
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
f5a20d3dbb docs(config): add mode change example
Closes #5312
2016-02-03 13:51:45 -05:00
7e06e6c563 docs(slides,page): update docs 2016-02-03 11:46:46 -05:00
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
de952e3cbb chore(): change source code console.log to console.debug 2016-02-02 16:41:35 -06:00
53532c5280 docs(toolbar): update docs 2016-02-02 16:42:40 -05:00
cd0829fd51 docs(toggle): update docs 2016-02-02 16:29:40 -05:00
bcda08e68a docs(tabs): update docs 2016-02-02 16:01:10 -05:00
8ed7da761f docs(tab): update tab docs 2016-02-02 15:50:37 -05:00
35cb112e85 docs(slides, slide): update doc 2016-02-02 14:51:23 -05:00
0fb297fe34 docs(select): update docs 2016-02-02 14:16:32 -05:00
ed027fa951 docs(segment): update docs 2016-02-02 13:36:53 -05:00
7f068a25ec docs(searchbar): update docs 2016-02-02 13:15:09 -05:00
9ceb7f2fcc docs(scroll): update docs 2016-02-02 13:13:41 -05:00
8c7bfc6da2 docs(pullToRefresh): update docs 2016-02-02 12:41:05 -05:00
4d84ea2055 docs(radioGroup): update radio-groupt-docs 2016-02-02 12:21:36 -05:00
7794c7269e docs(radio): update radio-button docs 2016-02-02 12:18:02 -05:00
d44fb880a9 docs(option): update docs 2016-02-02 11:47:16 -05:00
c2cf3b0636 refactor(themes): adjusted scss structure for additional themes
Related #4967
2016-02-02 10:02:31 -06:00
637e792945 regression: not using nested selector 2016-02-02 15:58:22 +01:00
a7415f10cc Fixes border radius in full outline button 2016-02-02 15:49:17 +01:00
71c6078ac5 chore(action-sheet): clean up deprecated warning 2016-02-01 22:33:19 -06:00
843947933f docs(NavController): remove members from NavCtrl docs 2016-02-01 22:18:29 -06:00
257247f9ee docs(navController): update docs 2016-02-01 23:05:05 -05:00
4cfe210a5a fix(input): copy custom attrs from ion-input to native input 2016-02-01 21:57:29 -06:00
015361d5c0 docs(navbar): update docs 2016-02-01 22:46:11 -05:00
a913e3e084 docs(nav): make inputs private 2016-02-01 22:43:03 -05:00
f47c3c3398 fix(searcher): add autocomplete="off" to native input 2016-02-01 21:09:29 -06:00
f3fb182137 fix(scrollbars): do not apply css scrollbars 2016-02-01 19:08:01 -06:00
c264e3187b fix(select): null value clears select text
Closes #5288
2016-02-01 15:56:51 -06:00
d8a4ec3893 docs(menu, menuClose, menuToggle): update docs 2016-02-01 16:27:26 -05:00
e6fb021d26 docs(list): update list docs 2016-02-01 16:27:26 -05:00
860dd672b1 docs(label): make inputs private 2016-02-01 15:39:36 -05:00