angular-components icon indicating copy to clipboard operation
angular-components copied to clipboard

Hide/Show the Clear button

Open LucasBrazi06 opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. In some cases, you don't want to allow the user to clear the date

Describe the solution you'd like Have a new property to show/hide the Clear button (why not also the others)

LucasBrazi06 avatar Oct 27 '22 17:10 LucasBrazi06

@LucasBrazi06 can you elaborate the usecase please? While its easy to implement it clear is there for ease of use from user experience standpoint. you can make the input box required if you want user to always select some date range. Would like to understand more from you. Thanks.

technikhil314 avatar Oct 29 '22 04:10 technikhil314

My use case is that I use the date/time picker to provide date/time filters and I don't want the user to clear the date. Why providing the Clear button when it's not allowed, this is confusing the user.

LucasBrazi06 avatar Oct 29 '22 05:10 LucasBrazi06

@LucasBrazi06 Fair enough but apply and cancel buttons cant be shown/hidden the same way. If user wants to undo their operation cancel is still very much handy. and apply is anyways shown only if autoapply is false. I will try to publish another version with feature to show hide clear button

technikhil314 avatar Oct 29 '22 05:10 technikhil314

@technikhil314 Thanks a lot!

LucasBrazi06 avatar Oct 29 '22 10:10 LucasBrazi06

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 14 '22 02:11 stale[bot]