Skip to content

Commit

Permalink
fix doc example for fun option
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Mar 25, 2024
1 parent 6f714c4 commit b5a491c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface Options {
/**
* This is the main and only mandatory option parameter. It is the user function that is called when the Submit action happens.
* @example with a custom function
* ```
* // this is the user function that will process the new value
* // typically this will POST to some endpoint and get some json back
* // it receives the event
Expand All @@ -91,6 +92,7 @@ export interface Options {
* new Malle({
* fun: myCustomFunction,
* }).listen();
* ```
*/
fun(value: string, original: HTMLElement, event:Event, input: HTMLInputElement|HTMLSelectElement): Promise<string>;
// The classes added to the input element.
Expand Down

0 comments on commit b5a491c

Please sign in to comment.