mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(demos/scroll): api demo
This commit is contained in:
10
demos/scroll/index.ts
Normal file
10
demos/scroll/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {App} from 'ionic/ionic';
|
||||
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
|
||||
class DemoApp {
|
||||
blur() {
|
||||
}
|
||||
}
|
||||
16
demos/scroll/main.html
Normal file
16
demos/scroll/main.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<ion-navbar *navbar>
|
||||
|
||||
<ion-title>
|
||||
Scroll
|
||||
</ion-title>
|
||||
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content>
|
||||
|
||||
<ion-scroll scroll-x="true" scroll-y="true" style="width: 100%; height: 100%">
|
||||
<div style="width: 3460px; height: 3008px; background: url('https://upload.wikimedia.org/wikipedia/commons/3/32/Paris_7th_arrondissement_map_with_listings.png') repeat"></div>
|
||||
</ion-scroll>
|
||||
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user