リストの要素を検索したのですが、リスト項目の詳細カードに検索欄が表示されてしまい、詳細カードの検索欄を非表示にしたいです。コントローラーで非表示にしようとしました:
showDetail: function(list, record) {
this.getMain().push({
xtype: 'recipedetail',
title: record.fullName(),
data: record.data
}),
this.getMain().getNavigationBar.hide({
xtype: 'searchfield',
itemId:'contact_search'
})
}
そして詳細カードでそれを隠そうとしました:
config: {
...,
items: [{
xtype: 'searchfield',
itemId:'contact_search',
hidden: true
}]
}
ただし、検索フィールドは引き続き表示されます。コードまたは私の考えの方向にエラーがありますか? http://www.senchafiddle.com/#4hKD8#uZlr7#JywGI#3D6PK#DOaF9#oVfK0#jdzF3