You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The content directive is a core scrollable content area
20
-
// that is part of many View hierarchies
19
+
/*
20
+
* @ngdoc directive
21
+
* @name ionContent
22
+
*
23
+
* @description
24
+
* The ionContent directive provides an easy to use content area that can be configured to use
25
+
* Ionic's custom Scroll View, or the built in overflow scorlling of the browser.
26
+
*
27
+
* While we recommend using the custom Scroll features in Ionic in most cases, sometimes (for performance reasons) only the browser's native overflow scrolling will suffice, and so we've made it easy to toggle between the Ionic scroll implementation and overflow scrolling.
28
+
*
29
+
* When using the Ionic scroll features, you'll get pull-to-refresh, customizable scroll mechanics (like bounce easing, momentum acceleration, etc.) which aligns Ionic with native SDKs that give you access to scroll behavior. You'll also get events while in a momentum scroll, which -webkit-overflow-scrolling: touch will not, making it of limited use in real applications.
30
+
*
31
+
* Also, we are working on virtual list rendering which will only work when using Ionic's scroll view. That is on the upcoming roadmap.
32
+
*
33
+
* @restrict E
34
+
* @param {boolean=} scroll Whether to allow scrolling of content. Defaults to true.
35
+
* @param {boolean=} overflow-scroll Whether to use overflow-scrolling instead of Ionic scroll.
36
+
* @param {boolean=} padding Whether to add padding to the content.
37
+
* @param {boolean=} has-header Whether to offset the content for a header bar.
38
+
* @param {boolean=} has-subheader Whether to offset the content for a subheader bar.
39
+
* @param {boolean=} has-footer Whether to offset the content for a footer bar.
40
+
* @param {boolean=} has-bouncing Whether to allow scrolling to bounce past the edges of the content. Defaults to true on iOS, false on Android.
41
+
* @param {expression=} on-refresh Expression to evaluate on refresh completion.
42
+
* @param {expression=} on-refresh-opening Expression to evaluate on refresh opening.
43
+
* @param {expression=} on-scroll Expression to evaluate when the content is scrolled.
44
+
* @param {expression=} on-scroll-complete Expression to evaluate when a scroll action completes.
0 commit comments