【发布时间】:2013-10-29 22:48:13
【问题描述】:
我正在使用 x-editable 插件进行就地编辑,效果很好。
以下 jsfiddle 显示了他们文档中的一个示例: http://jsfiddle.net/ibrahima_yock/CFNXM/27/
<div>
<span>Status:</span>
<a href="#" id="status"></a>
</div>
.
//make status editable
$('#status').editable({
type: 'select',
title: 'Select status',
placement: 'right',
source: [
{value: 1, text: 'status 1'},
{value: 2, text: 'status 2'},
{value: 3, text: 'status 3'}
]
});
正如您在 jsFiddle 中看到的,在 html 窗格中,状态为“空”(用红色书写)。我们想把这个词翻译成另一种语言。我们如何指定它?
【问题讨论】:
标签: twitter-bootstrap x-editable