File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed
Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11<Page xmlns =" http://schemas.nativescript.org/tns.xsd" loaded =" pageLoaded" class =" page"
22 xmlns : ui =" nativescript-block-ui" >
33 <StackLayout class =" p-20" >
4- <Label text =" {{ message }}" class =" t-20 text-center c-black" textWrap =" true" />
4+ <Button text =" LOCK" tap =" {{ lock }}" ></Button >
5+ <Button text =" UNLOCK" tap =" {{ unlock }}" ></Button >
56 </StackLayout >
67</Page >
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ export class HelloWorldModel extends Observable {
1212
1313 public lock ( ) {
1414 this . blockUI . lock ( ) ;
15+ setTimeout ( ( ) => {
16+ this . blockUI . unlock ( ) ;
17+ } , 5000 ) ;
1518 }
1619
1720 public unlock ( ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as application from "tns-core-modules/application";
33
44declare const android : any ;
55
6- export class BlockUi extends Common {
6+ export class BlockUI extends Common {
77 public lock ( ) {
88 let activity = application . android . foregroundActivity ;
99
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as utils from "tns-core-modules/utils/utils";
33
44declare const UIApplication ;
55
6- export class BlockUi extends Common {
6+ export class BlockUI extends Common {
77 public lock ( ) {
88 utils . ios
99 . getter ( UIApplication , UIApplication . sharedApplication )
Original file line number Diff line number Diff line change 11import { Common } from "./block-ui.common" ;
22export declare class BlockUI extends Common {
3- // Block ui
43 public lock ( ) ;
5- // Unlock ui
64 public unlock ( ) ;
75}
You can’t perform that action at this time.
0 commit comments