Skip to content

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>
NameTypeDescription
blurOutputEmitterRef<ElementEventsOf<T>["blur"]>A field lost focus.
elementChangeOutputEmitterRef<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.
escapeOutputEmitterRef<ElementEventsOf<T>["escape"]>The customer pressed Escape.
focusOutputEmitterRef<ElementEventsOf<T>["focus"]>A field gained focus.
loadErrorOutputEmitterRef<ElementEventsOf<T>["loaderror"]>The element could not load. loaderror in @pesepay/js.
optionsSignal<ElementOptionsMap[T] | undefined>The element’s options. Required where the element needs one.
readyOutputEmitterRef<ElementEventsOf<T>["ready"]>The element has rendered.