"Standard" dialogs, which are used in Web Document Editor UI
In This Topic
By default the Web Document Editor uses the following "standard" dialogs:
1. "Standard" dialogs, which are based on Bootstrap
Ready-to-use "standard" dialogs, which are based on Bootstrap dialog, are stored in Vintasoft.Imaging.Office.Dialogs.Bootstrap.js file.
If "standard" Bootstrap dialogs must be used in the web document editor, web application must have:
-
link to the CSS-file of Bootstrap, for example:
<link rel="stylesheet" type="text/css" href="~/lib/bootstrap/dist/css/bootstrap.css">
-
link to the jQuery and Bootstrap libraries, for example:
<script src="~/lib/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
-
link to the Vintasoft.Imaging.js, Vintasoft.Imaging.css, Vintasoft.Imaging.Office.js, Vintasoft.Imaging.Office.css, Vintasoft.Imaging.Dialogs.Bootstrap.js and Vintasoft.Imaging.Office.Dialogs.Bootstrap.js files, for example:
<script src="~/js/Vintasoft.Imaging.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="~/js/Vintasoft.Imaging.css">
<script src="~/js/Vintasoft.Imaging.Office.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="~/js/Vintasoft.Imaging.Office.css">
<script src="~/js/Vintasoft.Imaging.Dialogs.Bootstrap.js" type="text/javascript"></script>
<script src="~/js/Vintasoft.Imaging.Office.Dialogs.Bootstrap.js" type="text/javascript"></script>
Dialog appearance can be customized using Bootstrap CSS.
Here is screenshot of "standard" "Find text" dialog, which is based on Bootstrap:
2. "Standard" dialogs, which are based on jQuery UI
Ready-to-use "standard" dialogs, which are based on jQuery UI dialog, are stored in Vintasoft.Imaging.Office.Dialogs.jQueryUI.js file.
If "standard" jQueryUI dialogs must be used in the web document editor, web application must have:
-
link to the CSS-file of jQuery UI, for example:
<link rel="stylesheet" type="text/css" href="~/js/jquery-ui-css/jquery-ui.min.css">
-
link to the jQuery and jQuery UI libraries, for example:
<script src="~/js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="~/js/jquery-ui.min.js" type="text/javascript"></script>
-
link to the Vintasoft.Imaging.js, Vintasoft.Imaging.css, Vintasoft.Imaging.Office.js, Vintasoft.Imaging.Office.css, Vintasoft.Imaging.Dialogs.jQueryUI.js and Vintasoft.Imaging.Office.Dialogs.jQueryUI.js files, for example:
<script src="~/js/Vintasoft.Imaging.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="~/js/Vintasoft.Imaging.css">
<script src="~/js/Vintasoft.Imaging.Office.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="~/js/Vintasoft.Imaging.Office.css">
<script src="~/js/Vintasoft.Imaging.Dialogs.jQueryUI.js" type="text/javascript"></script>
<script src="~/js/Vintasoft.Imaging.Office.Dialogs.jQueryUI.js" type="text/javascript"></script>
Dialog appearance can be customized using jQuery UI CSS.
Here is screenshot of "standard" "Find text" dialog, which is based on jQuery UI:
3. Custom "standard" dialogs
If ready-to-use "standard" Bootstrap, jQuery UI and JavaScript dialogs are not suitable for your UI or task, it is possible to use custom "standard" dialogs in web document viewer.
If it is necessary to create custom dialog for another UI library, it is recommended to create dialog as a wrapper around ready-to-use UI panel (
WebUiDocumentEditorSettingsPanelJS,
WebUiDocumentEditorViewSettingsPanelJS,
WebUiDocumentInfoPanelJS,
WebUiPrintDocxDocumentSettingsPanelJS,
WebUiDocumentPageSettingsPanelJS,
WebUiDocumentPageColumnsSettingsPanelJS,
WebUiDocumentTextPropertiesPanelJS,
WebUiDocumentParagraphPropertiesPanelJS,
WebUiDocumentParagraphIndentationSettingsPanelJS,
WebUiDocumentParagraphLineSpacingSettingsPanelJS,
WebUiDocumentParagraphPaginationSettingsPanelJS). In this case it is not necessary to implement logic, which is related with dialog (for example, print images) because panel already contains all necessary logic.
Also it is possible to create "custom" dialog from scratch but in this case it is necessary to implement dialog UI and logic.