mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
docs(components): update method and parameter descriptions (#18075)
This commit is contained in:
@ -189,15 +189,17 @@ export class Select implements ComponentInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the select overlay, it could be an alert, action-sheet or popover,
|
||||
* based in `ion-select` settings.
|
||||
* Open the select overlay. The overlay is either an alert, action sheet, or popover,
|
||||
* depending on the `interface` property on the `ion-select`.
|
||||
*
|
||||
* @param event The user interface event that called the open.
|
||||
*/
|
||||
@Method()
|
||||
async open(ev?: UIEvent): Promise<OverlaySelect | undefined> {
|
||||
async open(event?: UIEvent): Promise<OverlaySelect | undefined> {
|
||||
if (this.disabled || this.isExpanded) {
|
||||
return undefined;
|
||||
}
|
||||
const overlay = this.overlay = await this.createOverlay(ev);
|
||||
const overlay = this.overlay = await this.createOverlay(event);
|
||||
this.isExpanded = true;
|
||||
overlay.onDidDismiss().then(() => {
|
||||
this.overlay = undefined;
|
||||
|
Reference in New Issue
Block a user