Commit Graph

721 Commits

Author SHA1 Message Date
Brandy Carney
2805e654f6 docs(select): fix the links to alert and action sheet API docs 2016-08-23 20:47:51 -04:00
Sergio Leal
66da98dc5f docs: update toolbar.ts (#7830)
Just a typo
2016-08-23 20:40:10 -04:00
Brandy Carney
3e7cf299e5 docs(select): update API docs to describe selectOptions
references #7764
2016-08-23 20:37:25 -04:00
Brandy Carney
b8285b7ba8 refactor(select): rename alertOptions to selectOptions, add ability to pass them for action-sheet
BREAKING CHANGES:

Select’s `alertOptions` input has been renamed to `selectOptions`. It
now allows you to pass options for either the alert or action-sheet
interface. Refer to their documentation for the options each of them
accept.

http://ionicframework.com/docs/v2/api/components/action-sheet/ActionShee
tController/#create
http://ionicframework.com/docs/v2/api/components/alert/AlertController/#
create

fixes #7764
2016-08-23 20:15:49 -04:00
Brandy Carney
8c1662d5e9 test(button): update karma and e2e tests for the new color input 2016-08-23 18:34:55 -04:00
Brandy Carney
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
Max Lynch
7b60e9c601 chore(components): export PickerColumn and options. Fixes #7783 2016-08-22 20:12:44 -05:00
Purusothaman Ramanujam
cc2359b2c8 docs: typo in the documentation (#7813) 2016-08-22 13:03:43 -04:00
Francis Clavette
8f270f4f44 docs(item): fix typo in sliding item docs
ionSiwpe -> ionSwipe
2016-08-20 21:31:38 -05:00
Manu Mtz.-Almeida
26441ecfe3 perf(reorder): reorder icon is display: none by default
references #7651
2016-08-20 15:53:02 +02:00
Manu Mtz.-Almeida
bac9b81e4c Merge remote-tracking branch 'origin/reorder-perf-fix'
# Conflicts:
#	src/components/item/item-reorder.scss
2016-08-20 15:47:40 +02:00
Manu Mtz.-Almeida
f3bb2dc51d fix(reorder): adjust reorder icon style for iOS and MD 2016-08-20 14:20:36 +02:00
Manu Mtz.-Almeida
02667d1644 Merge branch 'patch-1' of https://github.com/btroncone/ionic 2016-08-20 13:37:16 +02:00
Manu Mtz.-Almeida
824f6c8f10 Merge remote-tracking branch 'remotes/origin/feature/reorderAnimations' 2016-08-20 13:31:59 +02:00
TOMA Hadrien
bfd093628a docs(menuController): add param for menuId
Closes #7665
2016-08-19 15:42:03 -04:00
Alex Muramoto
97b57f1b53 Update docs and fix typos (#7776)
* docs(input): fix typo

* docs(scroll): add note about required CSS for scrollY

* docs(config): add swipeBackEnabled to config properties list

* docs(component generator): fix broken link in template comment

* docs(directive generator): fix broken link in template comment
2016-08-18 15:20:25 -04:00
Alex Muramoto
de12a4e905 refactor(virtual-scroll): add console.warn when approxItemHeight is unset 2016-08-18 12:57:27 -05:00
Justin Willis
6fb848cc4a fix(docs): get rid of reference to @Page 2016-08-18 09:26:44 -05:00
Brandy Carney
7ddebdd6a1 test(loading): add test to show setting dynamic content
references #6103
2016-08-17 14:07:43 -04:00
Brandy Carney
fa754f1110 Merge branch 'issue/6103-change-content-of-loading-component' of https://github.com/stonelasley/ionic into stonelasley-issue/6103-change-content-of-loading-component 2016-08-17 13:48:07 -04:00
Ramon Henrique Ornelas
1d33da9a56 style(): fix angular style import (#7722) 2016-08-17 13:19:08 -04:00
Thiery Laverdure
c11ae69b12 docs(popover): update instructions for presenting a popover 2016-08-17 09:22:09 -05:00
Brandy Carney
a8dc613627 test(button): fix karma tests for the new button syntax 2016-08-16 18:29:33 -04:00
Brandy Carney
d30643c4a0 chore: fix linter errors 2016-08-16 18:22:27 -04:00
Brandy Carney
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
Ramon Ornelas
90929d0ef9 docs(gestures): fix dgeni tag
Closes #7721
2016-08-14 18:45:35 -05:00
Stone C. Lasley
c750847df1 feat(loading): add setContent function 2016-08-12 18:24:07 -06:00
Da-FyK
8d0cc39357 docs(): fix path (nav->navbar) typo 2016-08-12 15:26:16 -05:00
Justin Willis
4bcd8153dd perf(item): apply will-change only when list is active 2016-08-11 01:11:15 -05:00
Emanuel
3324e32617 fix(checkbox): disabled toggle should not fire events or animate 2016-08-10 15:14:01 -05:00
mhartington
1f78487d96 feat(itemReorder): animate reorder button 2016-08-10 15:58:27 -04:00
Dan Bucholtz
174efc196d fix(gestures): fixes scroll issue with hammer config
Fixes scroll issue with hammer config where pinch/rotate gestures are preventing the screen from scrolling.

Closes #6897
2016-08-10 14:16:08 -05:00
Brandy Carney
54a33e08e7 docs(overlays): update the overlay docs for multiple classes in cssClass
closes #7618
2016-08-10 11:12:02 -04:00
Dan Bucholtz
e244d09eaa docs(app): documented setEnabled, setScrollDisabled methods
documented setEnabled, setScrollDisabled methods
2016-08-10 09:38:08 -05:00
Brandy Carney
79e25a342d feat(toast): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:23:12 -04:00
Brandy Carney
466dea310b feat(loading): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:15:58 -04:00
Brandy Carney
68ab2618d3 feat(action-sheet): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:13:27 -04:00
Brandy Carney
a685cdc4af feat(popover): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:09:02 -04:00
Justin Willis
42fa36bb91 test(alert): add test for overlays in viewDidEnter (#7606)
* chore(test): add test for overlays in viewDidEnter

* fix(test): dont break snapshot

* fix(test): fix where we import from
2016-08-08 13:13:26 -04:00
mhartington
4cfb5a48ee doc(): update private 2016-08-06 12:26:06 -04:00
mhartington
0579bbafc9 docs(content): update docs 2016-08-05 10:00:22 -04:00
Adam Bradley
5cb9d65146 chore(): fix type check error 2016-08-04 22:54:50 -05:00
Adam Bradley
a4e393b619 fix(nav): fire lifecycle events from app root portal 2016-08-04 22:47:36 -05:00
Adam Bradley
8eb0667b79 test(tabs): fix navCtrl reference 2016-08-04 20:17:09 -05:00
mhartington
5542a931f3 feat(alert): allow smooth overflow scrolling 2016-08-04 15:27:09 -04:00
Adam Bradley
3c493652b2 test(): update to public navCtrl convention 2016-08-04 13:50:15 -05:00
Adam Bradley
ff3daeed6c chore(): remove css-scrollbar styles 2016-08-04 12:58:50 -05:00
Adam Bradley
77e9b23bd2 test(nav): fix alert test 2016-08-04 12:07:24 -05:00
Adam Bradley
61a86253a8 fix(nav): register child nav when created from modal 2016-08-04 11:49:21 -05:00
Brandy Carney
3977928048 docs(demos): update the Option demo to use the Select demo 2016-08-04 12:46:23 -04:00