mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
403 B
TypeScript
17 lines
403 B
TypeScript
// TODO: write more tests
|
|
|
|
{
|
|
const a = new Alert();
|
|
a.title = 'Some title';
|
|
a.message = 'Some message';
|
|
a.addTextField('user id');
|
|
a.addTextField('username', 'pre filled text');
|
|
a.addSecureTextField('password');
|
|
a.addAction('OK');
|
|
a.addCancelAction('Cancel');
|
|
a.present();
|
|
a.presentAlert();
|
|
a.presentSheet();
|
|
const textFieldValue = a.textFieldValue(0);
|
|
}
|