strict

a read-only boolean flag indicating whether a strict mode is enabled for Webix library

boolean strict;

Example

if(webix.env.strict)
   //your code


Default value:

false
Details

Strict mode can be enabled by defining a "webix_strict" global variable before Webix files are included into the page:

<script>
    window.webix_strict = true;
</script> <script src="../webix.js" type="text/javascript"></script> <link rel="stylesheet" href="../webix.css" type="text/css">

Note that datatable math won't work with the strict mode enabled.

Compliance with Content Security Policy (CSP)

Strict mode removes Webix's use of eval and dynamic code generation (templates, date formatting), so the app can run under a strict CSP whose script-src directive does not include the 'unsafe-eval' keyword.

Strict mode only covers the script-src 'unsafe-eval' requirement. Webix still applies runtime and inline CSS to render and size its widgets, so a style-src directive that disallows 'unsafe-inline' is currently not supported.

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.