devexpress customs theme 적용하기
2021. 7. 8. 14:04ㆍIT개발/Vue.js
반응형
https://js.devexpress.com/Documentation/20_1/Guide/Vue_Components/Create_a_DevExtreme_Application/
Configure Themes
Switch the Theme
The DevExtreme Vue Template uses a main theme for the view content and an additional theme (color swatch) for the navigation menu. To switch to another theme, open the src\themes\metadata.base.json or src\themes\metadata.additional.json file and assign a theme name to the baseTheme field:
metadata.base.json
- {
- // ...
- "baseTheme": "material.blue.light",
- // ...
- }
You can find all theme names in the Predefined Themes help topic.
Run the following command to rebuild themes:
- npm run build-themes
Create a Custom Theme
You can use the DevExtreme ThemeBuilder to create custom themes based on predefined themes. Follow the steps below:
- Import src\themes\metadata.base.json or src\themes\metadata.additional.json to the ThemeBuilder.
- Customize the theme.
- Export theme metadata to the initial file (see Postpone Customization).
Run the following command to rebuild themes:
- npm run build-themes
반응형
'IT개발 > Vue.js' 카테고리의 다른 글
[Vuejs] mutations/actions 함수의 파라미터는 제한이 있다! (0) | 2021.07.27 |
---|---|
Vuex 라이프 사이클 (0) | 2021.07.27 |
npm run build 전후 스크립트 추가하기 (0) | 2021.07.15 |
vue router 에서 vuex modules store 참조하기 (0) | 2021.07.14 |
Vue.js #01. 뷰 시작하며... (0) | 2020.12.02 |