Saurabh Gupta
Saurabh Gupta

Reputation: 81

How to use x-editable plugin with meanjs yeoman generated code?

I love x-editable plugin and have used previously for angular standalone application. Currently I've generated my project using Yeoman meanjs generators and I can't find the same options like for configuring editableOptions, the way I could do in angular app. Does anyone know where I can configure these settings? Is it using app.use in express configuration? If yes, how do I include editable option in the function.

app.run(function(editableOptions) {
  editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
});

Upvotes: 1

Views: 186

Answers (1)

TsarS
TsarS

Reputation: 198

You can try do this in file moduleName.client.config.js

and do

 moduleName.run(function(editableOptions) {
  editableOptions.theme = 'bs3';
});

don't forget to connect the module in applicationModuleVendorDependencies

Upvotes: 1

Related Questions