Where can i find AlertController class methods?


#1

Hi all, I can’t find methods like “addInput” for the AlertController.

I’m using it in my code and it works but it’s not documented.

Here it says

“Otherwise the alert’s instance has methods to add options, such as setTitle() or addButton().”

Can you help me to find all these available methods?

Thank you in advance.


#2

Hi

I would dive into the alertcontroller’s code as found in node_modules or github

Regards

Tom


#3

Thank you @Tommertom, found it but it’s hard to get all methods and options.

In particular I’d like to know which kind of input element can i pass as an option: I see here that I can use radio, checkbox, number and so on but I’d like to find a complete list of parameters… I’ll search for them in the code repo.

Thanks


#4

Hi

Also take a look at https://github.com/ionic-team/ionic-preview-app

It has all examples in it

Tom