[英]How to rename the header.actions field in Material-table?
我目前正在使用材料表庫,但似乎無法重命名操作字段? 我需要你的幫助才能做到這一點。 庫: https://material-table.com/#/docs/features/localization我找到了負責的屬性:HEADER.ACTIONS
我嘗試了下面的解決方案,但沒有結果。
先感謝您。 我很感激任何幫助。
{
title: 'Fragetyp',
field: 'followupType',
cellStyle: {
color: palette.tableBodyColor,
fontSize: '1.3rem'
},
render: (rowData) => <Subject />
},
{
title: 'actions',
field: 'header.actions',
cellStyle: {
color: palette.tableBodyColor,
fontSize: '1.3rem'
}
}
我想將“操作”字段 header 名稱重命名為另一種語言。
我找到了,您只需添加本地化,然后添加 header > 操作。
<MaterialTableStyled
localization={{
header: {
actions: 'Aktionen'
}
}}
... >
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.