我有我想更新它的動態標籤時,它的價值變化的Ext.form.Select
。簡單,因爲它的聲音,它拒絕工作:煎茶觸摸:如何刷新輸入標籤
var musicInCarInput = new Ext.form.Select({
options: [
{text: "Yes", value: "yes"},
{text: "Maybe", value: "maybe"},
{text: "No", value: "no"}
],
name: "music",
value: "maybe",
label: '<img src="/static/images/comfort_icons/music_maybe_small.png" />',
listeners: {
change: function()
{
musicInCarInput.label = '<img src="/static/images/comfort_icons/music_'+musicInCarInput.getValue()+'_small.png" />';
}
}
});
席力圖召doLayout()
後,我改變了標籤,但我被告知輸入沒有財產「的doLayout」,雖然如此記載。
任何想法的人?