fix data table
This commit is contained in:
parent
8fa55bea70
commit
10cda824e8
3 changed files with 151 additions and 103 deletions
|
|
@ -158,8 +158,8 @@ const tableActions = [
|
|||
icon: "pi pi-plus",
|
||||
layout: {
|
||||
position: "left",
|
||||
variant: "filled"
|
||||
}
|
||||
variant: "filled",
|
||||
},
|
||||
// Global action - always available
|
||||
},
|
||||
{
|
||||
|
|
@ -173,8 +173,8 @@ const tableActions = [
|
|||
requiresSelection: true, // Single selection action - appears above table, enabled when exactly one row selected
|
||||
layout: {
|
||||
position: "center",
|
||||
variant: "outlined"
|
||||
}
|
||||
variant: "outlined",
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Export Selected",
|
||||
|
|
@ -188,8 +188,8 @@ const tableActions = [
|
|||
requiresMultipleSelection: true, // Bulk action - operates on selected rows
|
||||
layout: {
|
||||
position: "right",
|
||||
variant: "filled"
|
||||
}
|
||||
variant: "filled",
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Edit",
|
||||
|
|
@ -203,8 +203,8 @@ const tableActions = [
|
|||
rowAction: true, // Row action - appears in each row's actions column
|
||||
layout: {
|
||||
priority: "primary",
|
||||
variant: "outlined"
|
||||
}
|
||||
variant: "outlined",
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Quick View",
|
||||
|
|
@ -218,8 +218,8 @@ const tableActions = [
|
|||
rowAction: true, // Row action - appears in each row's actions column
|
||||
layout: {
|
||||
priority: "secondary",
|
||||
variant: "compact"
|
||||
}
|
||||
variant: "compact",
|
||||
},
|
||||
},
|
||||
];
|
||||
// Handle lazy loading events from DataTable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue