Skip to content

Commit

Permalink
adds "on" property handler (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhav-stripe authored Feb 8, 2023
1 parent 238492f commit 62e200f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ export type StripeIssuingCardNumberDisplayElement = StripeElementBase & {
* This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
*/
update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;

/**
* Triggered when the element is fully rendered and can accept `element.focus` calls.
*/
on(
eventType: 'ready',
handler: (event: {elementType: 'issuingCardNumberDisplay'}) => any
): StripeIssuingCardNumberDisplayElement;
};

export interface StripeIssuingCardNumberDisplayElementOptions {
Expand Down

0 comments on commit 62e200f

Please sign in to comment.