maxkeppeler / sheets

⭐ ‎‎‎‏‏‎ ‎Offers a range of beautiful sheets (dialogs & bottom sheets) for quick use in your project. Includes many ways to customize sheets.
https://maxkeppeler.github.io/sheets/
Apache License 2.0
921 stars 77 forks source link

How to hide Positive & Negative buttons in InputSheet #68

Closed Vijaykumarj closed 3 years ago

Vijaykumarj commented 3 years ago

I can able to add Input radio buttons in the Input Sheet and but I want to hide the Positive & Negative buttons in InputSheet?

maxkeppeler commented 3 years ago

This is not possible right now. Other sheets have the method displayButtons() to show or hide the buttons view. You want to only display the inputs and save & close automatically once all the inputs are valid?

Vijaykumarj commented 3 years ago

Thanks for the update, How to close automatically if all inputs are valid?

maxkeppeler commented 3 years ago

If you do not display the buttons, the only logical procedure would be to react automatically to it. Once rgw inputs are valid and set, it would automatically save the data and invoke the listeners and then dismiss the sheet. I will add this method to the InputSheet as well. (Perhaps on the weekend.) However, I don't think it's nice to handle that automatically if the inputs are important - the user would like to have control when to finish and save the input data. Just for simple InputSheets it might come handy without a positive or negative button.

Vijaykumarj commented 3 years ago

thanks for your quick support and also considered my requirement.

ghost commented 3 years ago

Hello][°