Add slots for mt-data-table
Opened this issue · 0 comments
quando1910 commented
Package
@meteor/component-library
Description
The current mt-data-table does not support slots for some places we want to customize:
- Customize cell of mt-data-table. For example: with product name column, we want to show the product name and the variant below in the same column and style for it.
![Screen Shot 2024-06-04 at 10 25 45 AM](https://private-user-images.githubusercontent.com/29194019/336294330-5ece5f43-d212-43b4-bf0f-3a684172dd67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyMjYwNjMsIm5iZiI6MTcyMjIyNTc2MywicGF0aCI6Ii8yOTE5NDAxOS8zMzYyOTQzMzAtNWVjZTVmNDMtZDIxMi00M2I0LWJmMGYtM2E2ODQxNzJkZDY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI5VDA0MDI0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwMGJiMzdhNTViNDMzMTUwOWM4Yjg1NjlkZTNkMGE4NTNjMjNiY2FhNDFhOGNhM2M0MmNlZWU1MmExMGVmMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._bcGax8E4grmpwKMxMGM2kDNM6E3FOKvZYiVQhy5bio)
-
Change the edit button to another action.
-
Customize the filter button. It will open a modal instead of the popover.
-
Customize the menu item in context button
Code of Conduct
- I have read and agree to follow Meteor's Code of Conduct