Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ type SearchInfo = {

### `listSelectionBtnText?: string`

### `actionColumnText?: string`

### `onError? (err): void`

Error handler that trigger when onSearch throw error.
Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export interface IDataTableProps {
searchBtnText?: string,
clearBtnText?: string,
listSelectionBtnText?: string,
actionColumnText: string,
/** 最大的表单项显示数,当表单项超过此数值时,会自动出现 collapse 按钮 */
maxVisibleFieldCount?: number,
pageSize?: number,
Expand Down Expand Up @@ -182,7 +183,7 @@ export class DataTable extends React.Component<IDataTableProps, IDataTableState>
listSelectionBtnText: 'List selection'
}

readonly actionsColumn = this.props.rowActions && { key: 'actions', title: 'Actions', render: (record) => { return renderActions(this.props.rowActions as RowAction[], record) } } as ColumnProps<any>
readonly actionsColumn = this.props.rowActions && { key: 'actions', title: this.props.actionColumnText || 'Actions', render: (record) => { return renderActions(this.props.rowActions as RowAction[], record) } } as ColumnProps<any>

readonly shouldShowTableTitle = this.props.title || this.props.enableListSelection

Expand Down