mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #13305 from s0x/uikit-modal-options
Uikit support modal options
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
tsconfig.json
|
||||
.idea/
|
||||
Vendored
+245
-318
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"uikit-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../tslint.json"
|
||||
}
|
||||
+14
-3
@@ -2,9 +2,20 @@
|
||||
|
||||
function testModal() {
|
||||
UIkit.modal.alert("Attention!");
|
||||
UIkit.modal.confirm("Are you sure?", function () {
|
||||
// will be executed on confirm.
|
||||
});
|
||||
|
||||
let options: UIkit.ModalOptions = {
|
||||
keyboard: true,
|
||||
bgclose: true,
|
||||
minScrollHeight: 150,
|
||||
center: false,
|
||||
modal: true
|
||||
};
|
||||
UIkit.modal.confirm("Are you sure?", () => {});
|
||||
UIkit.modal.confirm("Are you sure?", () => {}, {});
|
||||
UIkit.modal.confirm("Are you sure?", () => {}, () => {});
|
||||
UIkit.modal.confirm("Are you sure?", () => {}, () => {}, {});
|
||||
UIkit.modal.confirm("Are you sure?", () => {}, {});
|
||||
|
||||
UIkit.modal.prompt("Name:", 'value', function (newvalue:string) {
|
||||
// will be executed on submit.
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user