-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to set a callback function (#11)
* Allow users to set a callback function * 1.3.0
- Loading branch information
1 parent
b854ce1
commit dc46c68
Showing
5 changed files
with
154 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import "bootstrap"; | ||
import { Modal } from "bootstrap"; | ||
|
||
export declare class ContactForm { | ||
serverScript: string; | ||
tokenInputName: string | null; | ||
successModal: Modal | null; | ||
messageAlert: HTMLElement | null; | ||
constructor(serverScript: string, tokenInputName?: string | null); | ||
initializeEventListeners(): void; | ||
isEmail(email: string): boolean; | ||
messageSuccess(): void; | ||
sendMessage(data: Record<string, string>): Promise<void>; | ||
handleSubmit(): void; | ||
displayAlert(message: string): void; | ||
serverScript: string; | ||
tokenInputName: string | null; | ||
successModal: Modal | null; | ||
messageAlert: HTMLElement | null; | ||
onSuccess: ((responseData: Record<string, any>) => void) | null; | ||
|
||
constructor( | ||
serverScript: string, | ||
tokenInputName?: string | null, | ||
onSuccess?: ((responseData: Record<string, any>) => void) | null, | ||
); | ||
|
||
handleSubmit(): void; | ||
displayAlert(message: string): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters