feat(alert): add support for custom input attributes (#21365)

This commit is contained in:
Celilsemi Sam Erkiner
2020-06-02 01:18:59 +10:00
committed by GitHub
parent 5f2001c43c
commit 1ed81693f2
9 changed files with 142 additions and 16 deletions

View File

@ -1,3 +1,5 @@
import { JSXBase } from '@stencil/core/internal';
import { AnimationBuilder, Mode, TextFieldTypes } from '../../interface';
import { IonicSafeString } from '../../utils/sanitization';
@ -33,8 +35,12 @@ export interface AlertInput {
min?: string | number;
max?: string | number;
cssClass?: string | string[];
attributes?: AlertInputAttributes | AlertTextareaAttributes;
}
export interface AlertTextareaAttributes extends JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement> {}
export interface AlertInputAttributes extends JSXBase.InputHTMLAttributes<HTMLInputElement> {}
export interface AlertButton {
text: string;
role?: string;