Browse Source
Merge pull request #21708 from abpframework/enisn-patch-2
Add leptonx style changes event to Documentation
pull/21709/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
10 additions and
0 deletions
-
docs/en/ui-themes/lepton-x/mvc.md
|
|
|
@ -81,6 +81,16 @@ Configure<LeptonXThemeOptions>(options => |
|
|
|
> |
|
|
|
> If your layout is **TopMenu**, then you have to add them under the **wwwroot/Themes/LeptonX/Global/top-menu/css/** folder. |
|
|
|
|
|
|
|
|
|
|
|
#### Handling Style Changes |
|
|
|
|
|
|
|
You can add extra logic by using javascript API when style is changed with the following event. |
|
|
|
```js |
|
|
|
leptonx.CSSLoadEvent.on(event =>{ |
|
|
|
console.log("Style is changed from " + event.detail.previousTheme + " to "+ event.detail.theme); |
|
|
|
}); |
|
|
|
``` |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
### LeptonXThemeMvcOptions |
|
|
|
|