我有一個物體資料表。
ColumnCollection = new List<ColumnProperty>
{
new ColumnProperty(nameof(ProductChapterMappingModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
}
}
在網路視圖中,它顯示為

這看起來不錯,但我的要求是在同一列下添加另一個按鈕呼叫詳細資訊,例如:

我怎樣才能做到這一點??
uj5u.com熱心網友回復:
您可以使用
Render = new RenderCustom("ColumnBtns")
進而
function ColumnBtns(data, type, row, meta) {
return 'Your HTML HERE'
//and you can use the parameter row to reference the object represented by the
//row such as Id like that (row.Id)
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/475743.html
