Commit Graph

91 Commits

Author SHA1 Message Date
Andy Joslin
c07846a49d docs(README): add instructions for testing docs 2014-03-10 09:32:24 -06:00
Andy Joslin
55089042d8 chore(build): documentation generation
Main changes:

* Use gulpfile now (build was getting way too disorganized with custom
tasks; gulpfiles are much easier to build clean custom tasks with than
Grunt.
* View README#Development for updated commands
* Docs written for ionContent, ionHeaderBar, ionInfiniteScroll.
* Docs are pushed to ajoslin's fork of ionic-site until they reach a
* point where they can be published.

**TODO, In Order of Priority**

1. Finish writing source-documentation for all existing components
2. Add multiple versions of docs (one per release & nightly, latest
 stable release docs being shown by default)
3. Add examples generation
4. Add searchbar to docs
2014-03-07 13:36:36 -07:00
flmu
3715bfcea7 refactor(ionInfiniteScroll): make it primarily use own attrs, add tests 2014-03-04 11:04:05 -07:00
Andy Joslin
7b0716c23c feat(ionInfiniteScroll): use event system
Fixes #661.

BREAKING CHANGE: The binding for ionInfiniteScroll has changed, as well
as how you finish it.

If you had this code before:

```html
<ion-content on-infinite-scroll="doSomething"></ion-content>
```
```js
function MyCtrl($scope) {
  $scope.doSomething = function(scrollDoneCallback) {
    doSomething();
    scrollDoneCallback();
  };
}
```js

Now, your code should look like this:

```html
<ion-content on-infinite-scroll="doSomething()"></ion-content>
```
``js
function MyCtrl($scope) {
  $scope.doSomething = function() {
    doSomething();
    $scope.$broadcast('scroll.infiniteScrollComplete');
  };
}
```
2014-02-26 13:58:47 -05:00
Andy Joslin
997aec8660 docs(ionContent): add doc comments 2014-02-26 13:56:53 -05:00
Andy Joslin
b406305b19 refactor(ionicContent): use $-prefix for onRefresh and onScroll events
Closes #675
2014-02-25 11:18:25 -05:00
flmu
1702f5c916 fix(ionContent): Use new name to find ion-infinite-scroll element 2014-02-25 16:08:31 +01:00
Andy Joslin
49e0dac999 feat(ionContent): use child scope instead of isolate scope
Adds new '$ionicBind' service, which takes an object containing
binding definitions (similar to angular directive isolate scope
definition).  Allows binding of any directive attribute & expressions
from a scope, letting us do normal attribute -> scope binding
without having to create isolate scopes.

Closes #555. Closes #669
2014-02-24 11:11:03 -05:00
Andy Joslin
2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00
Andy Joslin
c119498d1b feat($ionicScrollDelegate): add scrollTo(left,top,animate) to delegate
Also moves $ionicScrollDelegate.register to $ionicScroll controller,
and makes `<scroll>` directive be registered with $ionicScrollDelegate.
2014-02-11 13:40:45 -05:00
Andy Joslin
8581d162a3 refactor(content): set saved-scroll after timeout, only set valid values
Addresses #439
2014-02-08 00:19:03 -05:00
Andy Joslin
1fd3f39bb5 chore(): make files pass jshint (; errors) 2014-02-06 15:44:48 -05:00
Andy Joslin
7f4b28d9da feat(list): reordering scrolls page, reordering performance better
Fixes #521. Reordering now uses webkitTransform instead of
element.style.left.  Additionally, as you drag the drag-element to the
top or bottom of the scroll-area, it will scroll it up or down as
allowed.

Refactors necessary: Common code from `<content>` and `<scroll>` moved
into js/ext/angular/controllers/ionicScrollController.  Then `<content>`
and `<scroll>` expose the controller, and `<list>` can require it.

`<list>` then uses the controller (if exists) to pass the scrollView and
scrollEl to ReorderDrag, and ReorderDrag uses that to scroll.

Additionally, js/ext/angular/test/controller/ionicScrollController tests
much functionality that was untested before.
2014-02-06 15:04:23 -05:00
Andy Joslin
2d1b71c8e2 feat(content): remember scroll of previous page
`content` directive stores scroll in view page history.

The history is passed down through $viewContentLoaded event, which is
broadcasted by navView directive when it loads a page.
2014-02-04 08:48:03 -05:00
Adam Bradley
f37b196ff8 refactor ionic.Platform methods 2014-01-31 20:36:39 -06:00
Adam Bradley
95c8ddf301 Update $ionicPlatform.ready() 2014-01-31 10:31:42 -06:00
Max Lynch
050870e5f4 Fixed #458 2014-01-22 23:12:50 -06:00
Max Lynch
78f0242fd2 Pull in #440 2014-01-22 09:02:36 -06:00
Max Lynch
27311d5d18 Added support for offset start scroll view 2014-01-13 19:29:32 -06:00
Adam Bradley
567d6dae3b fix padding in content directive 2014-01-13 16:44:22 -06:00
Adam Bradley
124a6d1616 slim it down 2014-01-13 12:26:33 -06:00
Adam Bradley
2b2492d2d4 add padding classname for content directive 2014-01-13 11:59:58 -06:00
Max Lynch
86d6889628 Fixed #380 - rename ionic services to use $ionic prefix 2014-01-13 10:46:41 -06:00
Max Lynch
d90ae2c9af Fixed #279 - transclusion issue with content 2014-01-13 10:17:28 -06:00
Max Lynch
15e7f304f6 Merge branch 'master' of https://github.com/driftyco/ionic
Conflicts:
	dist/js/ionic-angular.min.js
	dist/js/ionic.min.js
2014-01-10 09:53:33 -06:00
Max Lynch
cb75c9de96 Fixed #366 - no Android scroll bouncing by default 2014-01-10 09:52:32 -06:00
Adam Bradley
ead7224a1e angular-ui router 2014-01-09 11:12:39 -06:00
Adam Bradley
3b3c649071 put some template changes in compile 2014-01-07 20:03:33 -06:00
Max Lynch
c0e11312bb Resize after infinite scroll 2014-01-07 19:08:16 -06:00
Mathieu
2fdc431bc3 Add support for distance attribute in infinite scroll 2013-12-28 12:20:05 +08:00
Mathieu
658649c48d Parse error 2013-12-28 11:53:42 +08:00
Mathieu
197349e77d Bind infinite scroll 2013-12-28 11:50:08 +08:00
Mathieu
7d5f5e6325 Add infinite scroll directive and handle infinite scroll in content directive 2013-12-28 10:43:50 +08:00
Max Lynch
5d5b5b95a5 Fixed #126 - tap header scroll to top 2013-12-18 19:26:22 -06:00
Adam Bradley
29945da8f7 jshint fixes 2013-12-14 21:47:07 -06:00
Max Lynch
2285c24362 Fixed #264 and #286 - snapping scroll 2013-12-12 18:49:49 -06:00
Max Lynch
37c6ac81ac Fixed #317 2013-12-12 14:26:12 -06:00
Max Lynch
098020e511 Fixed #315 - scroll size waiting 2013-12-11 17:07:10 -06:00
Max Lynch
3a801ac955 Fixed #311 - scrollbars for scroll view 2013-12-11 16:15:55 -06:00
Max Lynch
e06bba02ab Default scroll trigger to 50px 2013-12-10 11:52:51 -06:00
Max Lynch
0046ea2b78 Fixed on-select for list items 2013-12-09 17:17:16 -06:00
Max Lynch
0d881821bd Scroll complete callback 2013-12-09 16:05:59 -06:00
Max Lynch
78f1b1ce28 Fixed #295 and #293 - jQuery Scroll Event clash 2013-12-08 15:03:20 -06:00
Max Lynch
2c71e760f7 Fixed #291 - custom refresher content 2013-12-07 20:05:18 -06:00
Adam Bradley
3cfcfc01a4 jshint fixes 2013-12-07 15:05:56 -06:00
Max Lynch
eb8dbeb0fe include scroll event interval fix 2013-12-06 17:38:42 -06:00
Max Lynch
7bd2e5263d Expose an onScroll event 2013-12-05 19:30:18 -06:00
Max Lynch
4f61e91d2b Fixed #228 2013-12-03 19:50:27 -06:00
Max Lynch
e336e4dc54 More removal of flexbox vert 2013-12-03 15:16:01 -06:00
Max Lynch
373044cfd8 Pull to refresh with callback 2013-12-02 17:44:35 -06:00