forked from extern/egroupware
Add some jquery dialog options
This commit is contained in:
parent
2ec25b9e45
commit
4ef256f1a7
@ -392,7 +392,11 @@ var et2_dialog = /** @class */ (function (_super) {
|
|||||||
}, this),
|
}, this),
|
||||||
beforeClose: this.options.beforeClose,
|
beforeClose: this.options.beforeClose,
|
||||||
closeText: this.egw().lang('close'),
|
closeText: this.egw().lang('close'),
|
||||||
position: { my: "center", at: "center", of: window }
|
position: { my: "center", at: "center", of: window },
|
||||||
|
appendTo: this.options.appendTo,
|
||||||
|
draggable: this.options.draggable,
|
||||||
|
closeOnEscape: this.options.closeOnEscape,
|
||||||
|
dialogClass: this.options.dialogClass,
|
||||||
};
|
};
|
||||||
// Leaving width unset lets it size itself according to contents
|
// Leaving width unset lets it size itself according to contents
|
||||||
if (this.options.width) {
|
if (this.options.width) {
|
||||||
@ -799,6 +803,30 @@ var et2_dialog = /** @class */ (function (_super) {
|
|||||||
type: "string",
|
type: "string",
|
||||||
description: "Define position of dialog in the main window",
|
description: "Define position of dialog in the main window",
|
||||||
default: "center"
|
default: "center"
|
||||||
|
},
|
||||||
|
appendTo: {
|
||||||
|
name: "appendTo",
|
||||||
|
type: "string",
|
||||||
|
description: "Defines the dialog parent context",
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
draggable: {
|
||||||
|
name: "Draggable",
|
||||||
|
type: "boolean",
|
||||||
|
description: "Allow the user to drag the dialog",
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
closeOnEscape: {
|
||||||
|
name: "close on escape",
|
||||||
|
type: "boolean",
|
||||||
|
description: "Allow the user to close the dialog by hiting escape",
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
dialogClass: {
|
||||||
|
name: "dialog class",
|
||||||
|
type: "string",
|
||||||
|
description: "Add css classed into dialog container",
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -194,6 +194,30 @@ export class et2_dialog extends et2_widget {
|
|||||||
type: "string",
|
type: "string",
|
||||||
description: "Define position of dialog in the main window",
|
description: "Define position of dialog in the main window",
|
||||||
default: "center"
|
default: "center"
|
||||||
|
},
|
||||||
|
appendTo: {
|
||||||
|
name: "appendTo",
|
||||||
|
type: "string",
|
||||||
|
description: "Defines the dialog parent context",
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
draggable: {
|
||||||
|
name: "Draggable",
|
||||||
|
type: "boolean",
|
||||||
|
description: "Allow the user to drag the dialog",
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
closeOnEscape: {
|
||||||
|
name: "close on escape",
|
||||||
|
type: "boolean",
|
||||||
|
description: "Allow the user to close the dialog by hiting escape",
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
dialogClass: {
|
||||||
|
name: "dialog class",
|
||||||
|
type: "string",
|
||||||
|
description: "Add css classed into dialog container",
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -527,7 +551,11 @@ export class et2_dialog extends et2_widget {
|
|||||||
}, this),
|
}, this),
|
||||||
beforeClose: this.options.beforeClose,
|
beforeClose: this.options.beforeClose,
|
||||||
closeText: this.egw().lang('close'),
|
closeText: this.egw().lang('close'),
|
||||||
position: {my: "center", at: "center", of: window}
|
position: {my: "center", at: "center", of: window},
|
||||||
|
appendTo: this.options.appendTo,
|
||||||
|
draggable: this.options.draggable,
|
||||||
|
closeOnEscape: this.options.closeOnEscape,
|
||||||
|
dialogClass: this.options.dialogClass,
|
||||||
};
|
};
|
||||||
// Leaving width unset lets it size itself according to contents
|
// Leaving width unset lets it size itself according to contents
|
||||||
if (this.options.width) {
|
if (this.options.width) {
|
||||||
|
Loading…
Reference in New Issue
Block a user