【问题标题】:How to use x-editable plugin with meanjs yeoman generated code?如何将 x-editable 插件与 meanjs yeoman 生成的代码一起使用?
【发布时间】:2015-04-03 12:17:57
【问题描述】:

我喜欢 x-editable 插件,以前曾用于 Angular 独立应用程序。目前我已经使用 Yeoman meanjs 生成器生成了我的项目,但我找不到与配置可编辑选项相同的选项,就像我在 Angular 应用程序中可以做的那样。有谁知道我可以在哪里配置这些设置?它是在快速配置中使用 app.use 吗?如果是,如何在函数中包含可编辑选项。

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

【问题讨论】:

    标签: angularjs express x-editable meanjs yeoman-generator-angular


    【解决方案1】:

    您可以尝试在文件moduleName.client.config.js中执行此操作

    然后做

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

    不要忘记在 applicationModuleVendorDependencies 中连接模块

    【讨论】:

      猜你喜欢
      • 2015-01-07
      • 2023-03-22
      • 1970-01-01
      • 2013-03-14
      • 2014-03-17
      • 2015-12-29
      • 1970-01-01
      • 1970-01-01
      • 2015-06-12
      相关资源
      最近更新 更多