-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Overwritting custom buttons in interfaceOptions of alert-type ion-select #21155
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thanks for the issue. The Ok and Cancel buttons are required in the select to give users a way of cancelling or confirming their selection. You can customize the buttons by setting the For more information, please see the ion-select Documentation. |
@liamdebeasi customizing of two default button's text is not what I meant. But whatever. |
@DaniilVysotskiy Can you clarify what you meant? |
@liamdebeasi sure. What I meant is that ion-select Documentation is saying that:
But in fact I can not fully use AlertController API as it's stated in the documentation and the sample code given below won't work, which at first is confusing, because the reason why is hidden in source code at the line I pointed at subject:
So in fact, there is no custom buttons support for alerts-type ion-select and docs are missleading. But I managed to get around the problem by creating own custom modal component from scratch, which includes page-like component with |
Thanks for the clarification! Yeah this behavior is intentional -- The docs do mention that overriding
I do think the note is hard to find, so I will update the docs so this is clearer. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
What is the purpose of this? Why dont you allow to customize buttons in alert-type ion-select component?
Now I'm stuck, as multiple-selection is supported only in alert-type controllers, non else.
https://github.com/ionic-team/ionic/blob/2e8cc8ebc5e6bd4f8868b1668cb18e0ca691886c/core/src/components/select/select.tsx#L339
The text was updated successfully, but these errors were encountered: