Variable UtilConst

Util: {
    disableButton: ((button: HTMLButtonElement) => void);
    makeElem: ((htmlString: string) => HTMLElement);
    makeStyleElement: ((css: string) => HTMLStyleElement);
    postForm: ((path: string, params: Record<string, any>, method??: string) => void);
} = ...

Type declaration

  • disableButton: ((button: HTMLButtonElement) => void)
      • (button): void
      • Parameters

        • button: HTMLButtonElement

        Returns void

  • makeElem: ((htmlString: string) => HTMLElement)
      • (htmlString): HTMLElement
      • Smarty Pay Client SDK

        Parameters

        • htmlString: string

        Returns HTMLElement

        Evgeny Dolganov evgenij.dolganov@gmail.com

  • makeStyleElement: ((css: string) => HTMLStyleElement)
      • (css): HTMLStyleElement
      • Parameters

        • css: string

        Returns HTMLStyleElement

  • postForm: ((path: string, params: Record<string, any>, method??: string) => void)
      • (path, params, method?): void
      • sends a request to the specified url from a form. this will change the window location.

        Parameters

        • path: string

          the path to send the post request to

        • params: Record<string, any>

          the parameters to add to the url

        • Optionalmethod: string = 'post'

          the method to use on the form

        Returns void