Sencha でを使用するExt.dataview.List
と、データのロード中にナイス ロード スピナーが自動的に挿入されます。それはそれでいいのですが、カスタム ローダーの使い方を知りたい.gif
です。
私は周りを見回して、ロードマスクを変更する必要があると思いますが、これに慣れていない積極的な原因ではありません。このリンクを参照してください。
以下は、私のリストの 1 つのコードです。すべてのリストが影響を受け、新しいスピナーを持つように、提案されたコードを 1 か所に追加できることを望んでいます。
{
xtype: 'list',
height: '',
id: 'categoryList',
itemId: '',
width: '100%',
scrollable: false,
emptyText: '<div class="pdtsListHtml" style="margin-top:30%">Product List Empty</div>',
itemTpl: [
'<div ><div class="pdtsListHtml" style="display:inline;">{navigationElementItemName} ({navigationElementItemRecordCounts})</div><div style="display:inline;float:right;margin-right:5px;"><img src="resources/image/arrow.png" width="11" height="11"></div></div>'
],
store: 'productListStore',
allowDeselect: true,
onItemDisclosure: false
}