search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot default css styles

Asked by Anton
17 days ago.

Hi,

we use the scheduler/gantt with our custom theme (DayPilot Pro for JavaScript 2022.2.5272).
Everything seems to be ok, but our Content Security Policy blocks inline execution of scripts and stylesheets (DayPilot default css styles).

Is it possible to configure/extract the default css styles registration from .js to the separate .css/.less files?

Regards,
Anton

Answer posted by Dan Letecky [DayPilot]
17 days ago.

You can generate a custom theme using the Theme Designer:
https://themes.daypilot.org/

The default settings will generate a theme that corresponds to the built-in theme. You can include the generated CSS file using a <link> tag.

Comment posted by Anton
16 days ago.

We use already the custom theme. As described above, we get error during registration of the default (built-in) CSS styles. Is it possible to disable that?

Comment posted by Dan Letecky [DayPilot]
16 days ago.

You can disable it by setting the value of DayPilot.Global.defaultCss to true (before you load DayPilot JS):

var DayPilot = {
  Global: {
    defaultCss: true
  }
};
New Reply
This reply is
Your name (optional):