mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
docs(scroll): add ion-scroll docs
This commit is contained in:
@ -9,8 +9,24 @@ import {Animation} from '../../animations/animation';
|
|||||||
import * as util from 'ionic/util';
|
import * as util from 'ionic/util';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scroll is a non-flexboxed scroll area that can scroll horizontally or
|
* @name Scroll
|
||||||
* vertically.
|
* @description
|
||||||
|
* Scroll is a non-flexboxed scroll area that can scroll horizontally or vertically. `ion-Scroll` Can be used in places were you may not need a full page scroller, but a highly customized one, such as image scubber or comment scroller.
|
||||||
|
* @usage
|
||||||
|
* ```html
|
||||||
|
* <ion-scroll scroll-x="true">
|
||||||
|
* </ion-scroll>
|
||||||
|
*
|
||||||
|
* <ion-scroll scroll-y="true">
|
||||||
|
* </ion-scroll>
|
||||||
|
*
|
||||||
|
* <ion-scroll scroll-x="true" scroll-y="true">
|
||||||
|
* </ion-scroll>
|
||||||
|
* ```
|
||||||
|
*@property {boolean} [scroll-x] - whether to enable scrolling along the X axis
|
||||||
|
*@property {boolean} [scroll-y] - whether to enable scrolling along the Y axis
|
||||||
|
*@property {boolean} [zoom] - whether to enable zooming
|
||||||
|
*@property {number} [max-zoom] - set the max zoom amount for ion-scroll
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ion-scroll',
|
selector: 'ion-scroll',
|
||||||
|
Reference in New Issue
Block a user