Ionic-3如何动态改变离子主题
16lz
2021-01-22
I need to change my ionic app theme dynamically. $color theme value should be rendered from database
我需要动态更改我的离子应用主题。 $ color主题值应该从数据库中呈现
Give me some idea to short out this!
给我一些想法来简化这个!
1 个解决方案
#1
0
we cant change the $color value dynamically but we have to change the theme by making separate SCSS file for theming here is the reference GitHub project https://github.com/yannbf/ionic3-components/tree/master/src/theme
我们无法动态更改$ color值,但我们必须通过为主题单独创建SCSS文件来更改主题,这里是参考GitHub项目https://github.com/yannbf/ionic3-components/tree/master/src/theme
更多相关文章
- Laravel将动态输入数据数组保存到数据库中
- 在数据库中存储行数或动态获取
- 强制动态加载的类来扩展或实现接口
- MYSQL中动态行数据转列数据
- MyBatis排序时使用order by 动态参数时需要注意,用$而不是# 用$传
- javascript 动态数组的使用
- iPhone的网站主题 - 什么是基本成分?
- Javascript字符串替换为动态创建的模式。
- 在angularjs中动态添加/删除checked属性到checkbox复选框