Andy Joslin
986dbac893
refactor(ionList): more expressive, declarative (breaking change)
...
Closes #1024 .
BREAKING CHANGE: ion-list syntax has changed in favor of simplicity &
flexibility.
Relevant documentation:
[ionList](http://ionicframework.com/docs/api/directive/ionList ),
[ionItem](http://ionicframework.com/docs/api/directive/ionItem ),
[ionOptionButton](http://ionicframework.com/docs/api/directive/ionOptionButton ),
[ionReorderButton](http://ionicframework.com/docs/api/directive/ionReorderButton ),
[ionDeleteButton](http://ionicframework.com/docs/api/directive/ionDeleteButton ),
[$ionicListDelegate](http://ionicframework.com/docs/api/service/$ionicListDelegate ).
To migrate, change your code from this:
```html
<ion-list option-buttons="[{text:'hello',type:'button-positive',onTap:tap()}]"
on-delete="onDelete(el)"
delete-icon="ion-minus-circled"
can-delete="true"
show-delete="shouldShowDelete"
on-reorder="onReorder(el, startIndex, toIndex)"
reorder-icon="ion-navicon"
can-reorder="true"
show-reorder="shouldShowReorder">
<ion-item ng-repeat="item in items">
{{item}}
</ion-item>
</ion-list>
```
To this:
```html
<ion-list show-delete="shouldShowDelete"
show-reorder="shouldShowReorder">
<ion-item ng-repeat="item in items">
{{item}}
<ion-delete-button class="ion-minus-circled"
ng-click="onDelete(item)">
</ion-delete-button>
<ion-reorder-button class="ion-navicon"
ng-click="onReorder(item, $fromIndex, $toIndex)">
</ion-reorder-button>
<ion-option-button class="button-positive" ng-click="tap()">
Hello
</ion-option-button>
</ion-item>
</ion-list>
```
2014-04-04 10:12:16 -06:00
Andy Joslin
ad12bffca7
refact(navClear): lower priority
2014-04-04 09:38:04 -06:00
Andy Joslin
ce42623176
style(navClear): remove unused dependencies
2014-04-04 09:37:32 -06:00
Andy Joslin
4f47bf24f0
fix(navClear): be sure it runs before ngClick
...
Closes #1047
2014-04-04 09:32:16 -06:00
Adam Bradley
0c1362861d
refactor ionic.tap and start writing tests
2014-04-03 13:52:48 -05:00
Andy Joslin
21ff75479f
fix($ionicPopup): make it work if jquery is included
...
Closes #1027
2014-04-03 11:55:13 -06:00
Adam Bradley
43ad2271d8
docs(scroll): Fix typo
2014-04-03 09:20:43 -05:00
Andy Joslin
972579383a
feat(ionNavBar): make back button animated
...
Closes #1030
2014-04-02 19:35:09 -06:00
Mark Taylor
fbff104d39
Update ionicGesture.js
...
'Off' method name for docs
2014-04-02 15:55:18 -04:00
Cheguevara
078f54dbe8
Update ionicRadio.js
2014-04-02 21:46:59 +04:00
Andy Joslin
ee2b76864a
fix(ionicTabBar): detect if matches state in all cases
...
Addresses #894 .
2014-04-01 08:26:54 -06:00
Andy Joslin
2a2f657eaf
chore(build): make watch task build all before watch starts
2014-04-01 07:27:27 -06:00
Andy Joslin
6fc3fe28b7
docs($ionicPlatform): note that it returns a promise
...
Addresses #991
2014-03-31 22:58:37 -06:00
Adam Bradley
ac94bb236e
fix(checkbox): Entire row of an .item w/ a checkbox is now tappable, closes #995
2014-03-31 22:11:13 -05:00
Adam Bradley
adede32d2f
Merge pull request #996 from rvanbaalen/patch-1
...
Update ionicPlatform.js
2014-03-31 21:58:19 -05:00
Adam Bradley
2fbdebcdea
fix(range): Fix range being able to slide when in a side menu, closes #318
2014-03-31 13:53:49 -05:00
Robin van Baalen
13b3825034
Update ionicPlatform.js
...
Addresses #991 - Make $ionicPlatform.ready()'s callback optional
2014-03-31 10:38:49 -07:00
Adam Bradley
441a21c494
fix(popup): Backwards compatible remove popup from DOM, closes #851
2014-03-31 11:04:23 -05:00
Andy Joslin
58de267171
fix(ionNavButtons): multiple ionNavButtons elements align correctly
...
Fixes #930
Uses a `<span>` now for each set buttons in the navbar, instead of a
`<div>`. This means that the buttons will align correctly instead of
creating new lines for each set of buttons.
2014-03-31 06:29:10 -06:00
SebastianLopienski
f039fc26a1
docs(ionNavView): correct typo
...
Closes #989
2014-03-31 06:10:39 -06:00
flmu
f847c20847
feat($ionicScrollDelegate): add scrollBy(left,top,animate) to delegate
...
Closes #987
2014-03-31 05:43:13 -06:00
Adam Bradley
da565f1578
Merge pull request #951 from elm/patch-1
...
docs(ionNavView): Fix example
2014-03-30 21:25:29 -05:00
Andy Joslin
cd04a6db65
docs(): undo previous change
2014-03-29 10:46:34 -06:00
LAU Thierry
dfe108b057
docs(ionNavview): s/animation=/class=
2014-03-29 08:40:16 -06:00
Adam Bradley
577d595dab
docs(keywords): Add some keywords to checkbox/radio/toggle
2014-03-28 16:00:56 -05:00
Florian Mutter
377177acc0
docs(ionNavView): Fix example
2014-03-28 18:02:58 +01:00
Adam Bradley
203a014a40
docs(code pens): Added codepens to checkbox, radio, toggle
2014-03-28 10:45:55 -05:00
Andy Joslin
e9933e9920
perf(delegateService): $getByHandle tiny improvement
2014-03-28 08:05:14 -06:00
Andy Joslin
dd64ac557a
docs($ionicSideMenuDelegate#getOpenRatio): reword & expand
2014-03-28 07:49:15 -06:00
Ash Connell
ac0e981f9e
feat($ionicSideMenuDelegate): add getOpenRatio() method
...
Closes #944 .
2014-03-28 07:48:31 -06:00
Keith D. Moore
d2e54a823a
feat(ionCheckbox): allow ng-disabled attribute
...
Closes #939 .
2014-03-28 07:41:41 -06:00
Keith D. Moore
3b79a8a3bf
Update ionicContent.js
...
Changed the javascript example for ion-refresher. Moved the call to stop the spinning into a finally block.
2014-03-27 14:46:09 -05:00
Andy Joslin
d53eab8197
fix(ionView): do not set navbar title if no title attr set
...
Fixes #915
BREAKING CHANGE: Before, if you did not have a `title` attribute set on your
ion-view, it would transition into that view and erase the navbar's current
title.
Now, if your ion-view does not have a `title` attribute set, the new
view will be transitioned in, but there will be no title change.
If you wish to have a blank title on your new view, you must now
explicitly set your `ion-view`'s title attribute to an empty string.
To migrate your code, change from this:
```html
<ion-view></ion-view>
```
To this:
```html
<ion-view title=""></ion-view>
```
2014-03-27 10:51:26 -06:00
Andy Joslin
bf5c46cbe1
docs($ionicModal): fix usage example header title
...
Closes #921
2014-03-27 09:09:02 -06:00
Andy Joslin
c92cc8f9d4
docs(ionContent): make drag-content examlpe simpler
...
Closes #929
2014-03-27 08:19:31 -06:00
Andy Joslin
a5eb48b956
fix(ionContent): do not let child scopes inherit has-* classes
...
Fixes #924
2014-03-27 08:16:02 -06:00
Andy Joslin
41b73abf40
fix(ionNavBar): adjust has-header if ionNavBar is hidden
...
Fixes #927 .
2014-03-27 06:49:18 -06:00
Andy Joslin
5c893ab81a
fix(ionRefresher): do not animate pulling-text
...
Closes #909
2014-03-26 21:29:14 -06:00
Andy Joslin
393850086f
feat($ionicModal): show/hide/remove return promises for animating
2014-03-26 20:48:53 -06:00
Jay Proulx
73da93d4a4
feat(ionContent): don't wrap in a .scroll element if scroll="false"
...
Fixes #841 . Closes #897 .
2014-03-26 19:18:09 -06:00
Andy Joslin
4a7d660788
refactor(docs): simplify hugely, leave more to ionic-site
2014-03-26 19:07:50 -06:00
Andy Joslin
8ec7c00f59
test(list): update with sidemenu
2014-03-26 10:33:14 -06:00
Andy Joslin
c7baba5f9a
style(ionRefresher): make pulling text display:block
...
Addresses #909
2014-03-26 08:11:01 -06:00
Andy Joslin
270d2bfea1
update ion-side-menu-content to be element everywhere
2014-03-26 07:50:54 -06:00
Adam Bradley
dd969e7e8b
Merge pull request #903 from XachMoreno/patch-3
...
Link to animation CSS page
2014-03-26 08:45:52 -05:00
Zachariah Moreno
e5c148801d
Matching option-button names in examples
2014-03-25 22:23:02 -07:00
Zachariah Moreno
4e69f5a0d5
Link to animation CSS page
2014-03-25 22:08:11 -07:00
Zachariah Moreno
4bb6021c21
Updated to option-buttons attribute
...
left-buttons attribute doesn't work...even on http://codepen.io/ionic/pen/JsHjf
2014-03-25 21:35:39 -07:00
Zachariah Moreno
230bbfed41
minor spelling fix
2014-03-25 20:53:02 -07:00
Andy Joslin
4d1b13b5ad
refact(ionView): do not call setTitle with initialTitle
2014-03-25 12:16:52 -06:00