PesepayElementDirective
What every element component shares: it creates its element in the
enclosing group once Pesepay has loaded, mounts it into its own host
element, re-emits its events, passes changed options to update(), and
destroys it with the component.
export declare abstract class PesepayElementDirective<T extends ElementType>Inputs and outputs
Section titled “Inputs and outputs”| Name | Type | Description |
|---|---|---|
blur | OutputEmitterRef<ElementEventsOf<T>["blur"]> | A field lost focus. |
elementChange | OutputEmitterRef<ElementEventsOf<T>["change"]> | The customer changed a value: change in @pesepay/js. Typed for the element, so a card’s carries brand. Not named change: Angular would also deliver the DOM change events that bubble out of the card provider’s form. |
escape | OutputEmitterRef<ElementEventsOf<T>["escape"]> | The customer pressed Escape. |
focus | OutputEmitterRef<ElementEventsOf<T>["focus"]> | A field gained focus. |
loadError | OutputEmitterRef<ElementEventsOf<T>["loaderror"]> | The element could not load. loaderror in @pesepay/js. |
options | Signal<ElementOptionsMap[T] | undefined> | The element’s options. Required where the element needs one. |
ready | OutputEmitterRef<ElementEventsOf<T>["ready"]> | The element has rendered. |