在按钮上添加文本 angular x-editable
adding text on buttons angular x-editable
您好,我需要在可编辑表单按钮上添加 "save" 和 "cancel" 文本。有两种方式
1)通过使用"default"主题
mainApp.run(function(editableOptions){
editableOptions.theme = 'default';
});
2) 按照本例中的方式进行
http://jsfiddle.net/NfPcH/7474/
有什么方法可以使用 "bs3" 主题并全局配置为在编辑表单时保存和取消文本
mainApp.run(function(editableOptions){
editableOptions.theme = 'bs3';
});
您实际上可以像这样覆盖按钮模板
app.run(function(editableOptions,editableThemes) {
editableOptions.theme = 'bs3';
editableThemes['bs3'].submitTpl = '<button type="submit">ok</button>';
});
我也创建了一个例子here
您好,我需要在可编辑表单按钮上添加 "save" 和 "cancel" 文本。有两种方式 1)通过使用"default"主题
mainApp.run(function(editableOptions){
editableOptions.theme = 'default';
});
2) 按照本例中的方式进行 http://jsfiddle.net/NfPcH/7474/
有什么方法可以使用 "bs3" 主题并全局配置为在编辑表单时保存和取消文本
mainApp.run(function(editableOptions){
editableOptions.theme = 'bs3';
});
您实际上可以像这样覆盖按钮模板
app.run(function(editableOptions,editableThemes) {
editableOptions.theme = 'bs3';
editableThemes['bs3'].submitTpl = '<button type="submit">ok</button>';
});
我也创建了一个例子here