屬性列表
名稱 |
數(shù)據(jù)類型 |
作用描述 |
默認(rèn)值 |
data |
any[ ] |
要加載的數(shù)據(jù)。 |
[ ] |
itemCls |
string |
數(shù)據(jù)項(xiàng)樣式類。 |
null |
itemStyle |
Object |
數(shù)據(jù)項(xiàng)內(nèi)聯(lián)樣式。 |
null |
hoverCls |
string |
當(dāng)鼠標(biāo)懸停在數(shù)據(jù)項(xiàng)樣式類上時(shí)。 |
datagrid-row-over |
selectedCls |
string |
選擇數(shù)據(jù)項(xiàng)時(shí)的樣式類。 |
datagrid-row-selected |
方法列表
名稱 |
參數(shù) |
返回值 |
作用描述 |
navRow |
step:number |
void |
瀏覽行。 |
scrollToSelectedRow |
none |
void |
滾動(dòng)到選中的行。 |
注意:
- 繼承: ListBaseComponent 。
- 選擇器: eui-datalist 。
使用方法
<eui-datalist style="width:550px;height:250px"
[data]="data"
[(selection)]="selection"
selectionMode="single">
<ng-template euiItemTemplate let-row>
<div class="product f-row">
<img src="https://www.jeasyui.com/tutorial/datagrid/images/{{row.itemid}}.png" rel="external nofollow" >
<div class="detail">
<p>{{row.itemid}} - {{row.name}}</p>
<p>{{row.attr}}</p>
<p>List Price: {{row.listprice}}</p>
</div>
</div>
</ng-template>
</eui-datalist>
更多建議: