Hi, thanks for that.
Ok, so just manually link into the html file (I could add to somewhere like the assets folder)?
I did try that previously, and had trouble with the fonts etc, but perhaps I'll retry this.
Support Forum
Hi, peterjc!
Please try this approach.
1. Add all required themes to assets section in angular.json.
This will automatically copy all themes and resources to build package.
Remove from styles section.
2. Add this initial theme code to src/index.html.
3. Switch theme in code with
I've added these changes to your example.
See attached sample ionic app which iterates through all available themes.
Please try this approach.
1. Add all required themes to assets section in angular.json.
This will automatically copy all themes and resources to build package.
Remove from styles section.
"assets": [
...
{
"glob": "**/*.css",
"output": "assets/theme",
"input": "./node_modules/bryntum-scheduler/"
},
{
"glob": "**/*",
"output": "assets/theme/fonts",
"input": "./node_modules/bryntum-scheduler/fonts"
}
],
<link rel="stylesheet" href="assets/theme/scheduler.stockholm.css" id="bryntum-theme">
DomHelper.setTheme('Dark');
DomHelper.setTheme('Stockholm');
...
See attached sample ionic app which iterates through all available themes.
- Attachments
-
- scheduler-ionic-theme.zip
- (133.44 KiB) Downloaded 123 times