extensions
extensions copied to clipboard
allow expandable button to work with custom cell template
If i set a field as expand true, it doesn't seem to show the button if i use a custom template for that cell. I tried adding a button with the mtx-grid-expansion-toggle directive added to it inside my custom template but it didnt seem to be enoguh to help.
Maybe you can put the expandable button into an empty field.
columns: MtxGridColumn[] = [
{
field: 'only show expandable button',
width: '0px',
showExpand: true,
formatter: () => ' ',
},
...
]
This is exactly what I ended up doing for now. I still needed to play around with the padding and width to make it look good. and the table header title needs to be set to ' ' (blank space) to prevent it from showing '--'.
On Fri, Aug 5, 2022 at 4:15 PM Zongbin @.***> wrote:
Maybe you can put the expandable button into an empty field.
columns: MtxGridColumn[] = [ { field: 'only show expandable button', width: '0px', showExpand: true, formatter: () => ' ', }, ...]
— Reply to this email directly, view it on GitHub https://github.com/ng-matero/extensions/issues/118#issuecomment-1206082879, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVUD73WN7XDSUNHL4EOJLDVXSWOJANCNFSM55J35LAQ . You are receiving this because you authored the thread.Message ID: @.***>
-- ~Slavrix~
Now you can try v14.2.0
, it doesn't need formatter: () => ' '
to prevent it from showing --
.