| 1 |
import { __wpupg } from 'Shared/Translations'; |
| 2 |
|
| 3 |
import ColumnsGrids from './grids/Columns'; |
| 4 |
|
| 5 |
let datatables = { |
| 6 |
'grids': { |
| 7 |
parent: __wpupg( 'Grids' ), |
| 8 |
title: __wpupg( 'Overview' ), |
| 9 |
id: 'grids', |
| 10 |
route: 'grids', |
| 11 |
label: { |
| 12 |
singular: __wpupg( 'Grid' ), |
| 13 |
plural: __wpupg( 'Grids' ), |
| 14 |
}, |
| 15 |
bulkEdit: { |
| 16 |
route: 'grids', |
| 17 |
type: 'grids', |
| 18 |
}, |
| 19 |
createButton: (datatable) => { |
| 20 |
WPUPG_Modal.open( 'create', { |
| 21 |
saveCallback: () => datatable.refreshData(), |
| 22 |
} ); |
| 23 |
}, |
| 24 |
selectedColumns: ['name', 'shortcode'], |
| 25 |
columns: ColumnsGrids, |
| 26 |
}, |
| 27 |
} |
| 28 |
|
| 29 |
export default datatables; |