Commit Graph

482 Commits

Author SHA1 Message Date
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
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
Andy Joslin
38700013d8 release: 1.0.0-beta.1 2014-03-25 14:38:00 -06:00
Andy Joslin
885f32a42d test(ionicView): remove ddescribe 2014-03-25 12:18:25 -06:00
Andy Joslin
4d1b13b5ad refact(ionView): do not call setTitle with initialTitle 2014-03-25 12:16:52 -06:00
Andy Joslin
3b0af6c339 test(ionNavBar): add test for $destroy() -> $hasHeader = false 2014-03-25 07:46:25 -06:00
Andy Joslin
17416d7a07 test(ionContent): add tests for has-* classNames 2014-03-25 07:45:20 -06:00
Andy Joslin
5da74bb736 sliderView: deprecate prev, add previous 2014-03-24 21:05:32 -06:00
Andy Joslin
c6dec3c472 refactor(delegates): s/getByHandle/$getByHandle for clarity 2014-03-24 20:51:14 -06:00
Andy Joslin
5567b08c4b delegates: add tabbar, update docs 2014-03-24 20:35:55 -06:00
Andy Joslin
621a355706 docs: update delegate docs to be more concise & clear 2014-03-24 19:40:10 -06:00
Andy Joslin
ffeaab5adc ionSlideBox: add $ionicSlideBoxDelegate with new features 2014-03-24 19:40:10 -06:00
Andy Joslin
1dd7675133 delegates: allow multiple delegates of same handle
Addresses #877
2014-03-24 17:29:35 -06:00
Andy Joslin
0658699338 refactor(Delegate): use forHandle method 2014-03-24 16:58:15 -06:00
Andy Joslin
c276545180 ionSideMenu: add $ionicSideMenuDelegate with new features 2014-03-24 16:48:59 -06:00
Andy Joslin
c1d2571d5e scroll: add $ionicScrollDelegate with new pattern
Addresses #877
2014-03-24 15:58:22 -06:00
Adam Bradley
b1a7c1990a fix(toggle): Changed tap listener to use "release", closes #882 #881 2014-03-24 16:21:44 -05:00
Adam Bradley
f1ed4b0084 fix(reorder): Prevent scroll w/ data-prevent-scroll attr on reorder btn, closes #848 2014-03-24 15:51:10 -05:00
Adam Bradley
76a5313480 fix(tap): Reset startCoordinates on touchend/mouseup, closes #874 2014-03-24 10:52:33 -05:00
Andy Joslin
dd2c0c776b refact(ionicBar): make tapScrollToTop work on navBar too
Closes #750
2014-03-24 07:57:52 -06:00
Andy Joslin
f692aaeec0 test(locationDecorator): make sure it always works 2014-03-24 07:57:47 -06:00
Adam Bradley
f8c6660632 fix tab-item-active test 2014-03-24 08:40:28 -05:00
Max Lynch
7dbe23382d Updated tabs test for class thing 2014-03-21 12:48:22 -05:00
Andy Joslin
ae57c1617d test(ionContent): fix test compiling wrong directive 2014-03-21 11:34:35 -05:00
Andy Joslin
4dd952a54d refact(ionScroll): add $onScroll binding
Closes #865
2014-03-21 10:08:09 -05:00
Andy Joslin
f594f653d5 refactor(controllers): only assign to parent scope when needed 2014-03-21 10:08:09 -05:00
Andy Joslin
38acea337a refactor(controllers): assign to parent scope if possible 2014-03-21 10:08:09 -05:00
Andy Joslin
f083eaf7f7 refactor(ionNavButtons): compile in the correct context 2014-03-21 09:15:51 -05:00
Andy Joslin
6d403efb48 refactor(ionHeaderBar): make sure tapScrollToTop works even on rootScope 2014-03-21 09:15:51 -05:00
Adam Bradley
423f9e4f77 fix(active): Updated which elements to set active class along w/ tests, closes #857 2014-03-21 09:08:40 -05:00
Andy Joslin
c653e83cec fix(ionList): only stop side menu drag if canSwipe
Closes #709
2014-03-21 07:08:26 -05:00
Adam Bradley
fe44a7d98b rename .item-drag to .item-reorder, further standardize item editing 2014-03-20 16:02:50 -05:00
Adam Bradley
404cc74e81 fix list item delete test 2014-03-20 14:56:45 -05:00
Adam Bradley
0027bf7612 Merge branch 'master' of https://github.com/driftyco/ionic
Conflicts:
	js/ext/angular/test/list.html
2014-03-20 14:21:54 -05:00
Adam Bradley
07c824db8d fix(item): Restructure item editing css for added reusability and organization 2014-03-20 14:18:12 -05:00
Max Lynch
dc2b24ed6a feat(popup): Support for programatically closing popup. Fixes #854 2014-03-20 12:01:53 -05:00
Max Lynch
7510777156 fix(listView): send index on delete. Fixes #849 2014-03-20 09:48:15 -05:00
Andy Joslin
4e1140702b ionicScrollController: do not try to remember scorll if no viewId 2014-03-19 16:51:34 -06:00
Andy Joslin
678cf1abf9 test(ionContent): add test page for dynamic has-* classes 2014-03-19 16:42:37 -06:00
Andy Joslin
e94d400648 feat(content): automatically add/remove has-* classes to content
Also, do manual transclusion on items that would be 'deep' directives -
to fix a problem with transcluding & requiring parent elements.

Closes #619
2014-03-19 16:32:24 -06:00
Adam Bradley
ed9f7e59fa side menu nav test updates 2014-03-19 14:37:19 -05:00
Andy Joslin
b6a73f0807 test(ionicScrollController): fix PhantomJS weirdness 2014-03-19 13:25:35 -06:00
Andy Joslin
6b07208cd5 test(ionicScrollController): remove ddescribe 2014-03-19 13:00:26 -06:00
Andy Joslin
245e2199c6 docs(ionicScrollController): write docs 2014-03-19 12:21:18 -06:00
Andy Joslin
dbe4e3901d feat(ionic): remove all delegates
BREAKING CHANGE: $ionicScrollDelegate, $ionicSlideBoxDelegate, and
$ionicSideMenuDelegate have been removed.

  - $ionicScrollDelegate has been changed to $ionicScrollController.
    Documentation:
    [ionContent](
    http://ajoslin.github.io/docs/nightly/api/directive/ionContent),
    [ionScroll](
    http://ajoslin.github.io/docs/nightly/api/directive/ionScroll)

    Change your code from this:

    ```html
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope, $ionicScrollDelegate) {
      $scope.scrollBottom = function() {
        $ionicScrollDelegate.scrollBottom();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see docs -->
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.scrollBottom = function() {
        $scope.$ionicScrollController.scrollBottom();
      };
    }
    ```

  - $ionicSideMenuDelegate has been changed to
    $ionicSideMenusController. Documentation:
    [ionSideMenus](http://ajoslin.github.io/docs/nightly/api/directive/ionSideMenus)

    Change your code from this:

    ```html
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope, $ionicSideMenuDelegate) {
      $scope.toggleLeftMenu = function() {
        $ionicSideMenuDelegate.toggleLeft();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see documentation -->
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.toggleLeftMenu = function() {
        $scope.$ionicSideMenuController.toggleLeft();
      };
    }
    ```

  - $ionicSlideBoxDelegate has been removed and upgraded to
    $ionicSlideBoxController. It had only one method that
    was unneeded.  [Documentation](
    http://ajoslin.github.io/docs/nightly/api/directive/ionSlideBox)
2014-03-19 11:51:07 -06:00
Adam Bradley
164187b4aa fix viewState.html test 2014-03-19 12:25:22 -05:00
Adam Bradley
6ebfe776bc fix(popup): Ensure popup is usable on top of a modal, closes #838 2014-03-19 10:55:54 -05:00
Adam Bradley
f744d9ebcf feat(navclear): Ability to disable the next view transition and back button 2014-03-18 21:51:32 -05:00