Skip to content

Commit 40675b7

Browse files
committed
updated
1 parent 4710860 commit 40675b7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
```javascript
1818
//main.js
1919
...
20-
import VueThemeManager from 'vue-theme-manager
20+
import VueThemeManager from 'vue-theme-manager'
2121
...
2222
let themeOptions = {
2323
activate:'light',
@@ -62,7 +62,7 @@ import VueThemeManager from 'vue-theme-manager'
6262
Vue.use(VueThemeManager,themeOptions);
6363
```
6464

65-
```
65+
```javascript
6666
//nuxt.config.js
6767
plugins:{
6868
...
@@ -79,7 +79,7 @@ plugins:{
7979
Plugin accepts `object` during initialization with props [This is Optional]:
8080

8181
```javascript
82-
Vue.use(VueThemeManager,{activate:'',styles{}})
82+
Vue.use(VueThemeManager,{activate:,styles})
8383
```
8484

8585
1. `activate:'string'` ---this will be the activated theme when plugin is initialized. Note default theme is `default`[This is optional]
@@ -199,13 +199,20 @@ this.$AppTheme.addTheme({textColor:'red',backgroundColor:'gold','splash',true});
199199
*themeName = "String" intended name for theme @optional default is "default"
200200
*activate = boolean --activate theme or not
201201
*/
202-
this.$AppTheme.saveTheme(); //save theme to db ..this can be changed like this
202+
203+
this.$AppTheme.saveTheme(); //save theme to db
204+
205+
//this can also be changed like this
203206
this.$AppTheme.addTheme(...).saveTheme();
204207

208+
209+
205210
this.$AppTheme.activateTheme(themeName);
206211
//where themeName is a `String` which is already contained in the themeOptions
207212

208-
this.$AppTheme.getTheme(array,themeName);
213+
214+
215+
this.$AppTheme.getTheme(themeName,array);
209216
//returns object of themeOptions
210217
array = themeoptions to be gotten like ['textColor','backgroundColor']
211218
themeName = name of theme to get options from

0 commit comments

Comments
 (0)