angular-material-components
angular-material-components copied to clipboard
Support for more than one action button
Hello, I am using this datetime picker in one of my projects, and while it works very well, I noticed that there is no option to add other action buttons (like a clear button or a cancel button) alongside the confirmation button. Can something be done to include the option for extra action buttons, in the same way as using an ng-template to customize the confirm button? Thank you in advance!
Hello, based on the doc, you can add custom actions.
https://h2qutc.github.io/angular-material-components/datetimepicker
Scroll to the bottom.
Hello. I need this functionality as well.
@bah99 , what are you talking about is not working. Because the content is rendered inside the existing button
.
Hi @seerj30, it looks like there is only one action you can override (confirm action). If you want to add more functionality like delete entry, you can use something like this: https://material.angular.io/components/input/examples#input-clearable