【问题标题】:adding text on buttons angular x-editable在按钮上添加文本 angular x-editable
【发布时间】:2015-09-29 18:00:26
【问题描述】:

您好,我需要在可编辑表单按钮上添加“保存”和“取消”文本。有两种方法 1)通过使用“默认”主题

 mainApp.run(function(editableOptions){      
       editableOptions.theme = 'default'; 
});

2) 按照本例中的方式进行操作 http://jsfiddle.net/NfPcH/7474/

有什么方法可以使用“bs3”主题并全局配置以在编辑表单时保存和取消文本

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

【问题讨论】:

    标签: angularjs twitter-bootstrap-3 x-editable


    【解决方案1】:

    您实际上可以像这样覆盖按钮模板

    app.run(function(editableOptions,editableThemes) {
          editableOptions.theme = 'bs3';
          editableThemes['bs3'].submitTpl = '<button type="submit">ok</button>';
    });
    

    我还创建了一个示例here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-30
      • 1970-01-01
      • 2023-03-09
      相关资源
      最近更新 更多