mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
feat(alert, toast): pass arbitrary HTML attributes to host element (#23891)
resolves #23825
This commit is contained in:
18
core/src/components.d.ts
vendored
18
core/src/components.d.ts
vendored
@ -7,8 +7,10 @@
|
||||
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
||||
import { ActionSheetButton, AlertButton, AlertInput, AnimationBuilder, AutocompleteTypes, CheckboxChangeEventDetail, Color, ComponentProps, ComponentRef, DatetimeChangeEventDetail, DatetimeOptions, DomRenderFn, FooterHeightFn, FrameworkDelegate, HeaderFn, HeaderHeightFn, InputChangeEventDetail, ItemHeightFn, ItemRenderFn, ItemReorderEventDetail, MenuChangeEventDetail, NavComponent, NavComponentWithProps, NavOptions, OverlayEventDetail, PickerButton, PickerColumn, RadioGroupChangeEventDetail, RangeChangeEventDetail, RangeValue, RefresherEventDetail, RouteID, RouterDirection, RouterEventDetail, RouterOutletOptions, RouteWrite, ScrollBaseDetail, ScrollDetail, SearchbarChangeEventDetail, SegmentButtonLayout, SegmentChangeEventDetail, SelectChangeEventDetail, SelectInterface, SelectPopoverOption, Side, SpinnerTypes, StyleEventDetail, SwipeGestureHandler, TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout, TextareaChangeEventDetail, TextFieldTypes, ToastButton, ToggleChangeEventDetail, TransitionDoneFn, TransitionInstruction, ViewController } from "./interface";
|
||||
import { IonicSafeString } from "./utils/sanitization";
|
||||
import { AlertAttributes } from "./components/alert/alert-interface";
|
||||
import { NavigationHookCallback } from "./components/route/route-interface";
|
||||
import { SelectCompareFn } from "./components/select/select-interface";
|
||||
import { ToastAttributes } from "./components/toast/toast-interface";
|
||||
export namespace Components {
|
||||
interface IonActionSheet {
|
||||
/**
|
||||
@ -106,6 +108,10 @@ export namespace Components {
|
||||
* The main title in the heading of the alert.
|
||||
*/
|
||||
"header"?: string;
|
||||
/**
|
||||
* Additional attributes to pass to the alert.
|
||||
*/
|
||||
"htmlAttributes"?: AlertAttributes;
|
||||
/**
|
||||
* Array of input to show in the alert.
|
||||
*/
|
||||
@ -2565,6 +2571,10 @@ export namespace Components {
|
||||
* Header to be shown in the toast.
|
||||
*/
|
||||
"header"?: string;
|
||||
/**
|
||||
* Additional attributes to pass to the toast.
|
||||
*/
|
||||
"htmlAttributes"?: ToastAttributes;
|
||||
/**
|
||||
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
||||
*/
|
||||
@ -3409,6 +3419,10 @@ declare namespace LocalJSX {
|
||||
* The main title in the heading of the alert.
|
||||
*/
|
||||
"header"?: string;
|
||||
/**
|
||||
* Additional attributes to pass to the alert.
|
||||
*/
|
||||
"htmlAttributes"?: AlertAttributes;
|
||||
/**
|
||||
* Array of input to show in the alert.
|
||||
*/
|
||||
@ -5894,6 +5908,10 @@ declare namespace LocalJSX {
|
||||
* Header to be shown in the toast.
|
||||
*/
|
||||
"header"?: string;
|
||||
/**
|
||||
* Additional attributes to pass to the toast.
|
||||
*/
|
||||
"htmlAttributes"?: ToastAttributes;
|
||||
/**
|
||||
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user