laravel-jstools
Version:
JS tools for building front-side of Laravel applications
42 lines (41 loc) • 1.82 kB
TypeScript
import { Form } from './Form';
import { ValidateErrorListInterface } from '../../services/ValidateService/interfaces/ValidateErrorListInterface';
import { AnyObjInterface } from '../../interfaces/AnyObjInterface';
import { ContextTypeEnum } from '../../types/ContextTypeEnum';
import { FormDataInterface } from './interfaces/FormDataInterface';
export declare class JQueryForm extends Form {
private $form;
private $fieldList;
private $spinner;
private $submit;
private $alert;
constructor(formId: string, formData: FormDataInterface, showNoty: boolean, componentsOptions: AnyObjInterface);
protected disableSubmitOnEnter(): void;
enableSubmitOnEnter(): void;
protected initComponents(): void;
protected setComponentValue($input: any, inputData: AnyObjInterface, fieldName: string): void;
protected getComponentValue($input: any): null | string;
protected showErrors(errorList: ValidateErrorListInterface): void;
protected clearErrors(): void;
protected showAlerts(alertList: string[], contextType: ContextTypeEnum): void;
protected clearAlerts(): void;
protected setInputsValues(data: AnyObjInterface): void;
setMethod(method: string): void;
setAction(action: string): void;
getMethod(): string;
getAction(): string;
getToken(): string;
hide(): void;
show(): void;
protected callFormSubmit(): void;
protected showSubmitBtn(): void;
protected hideSubmitBtn(): void;
protected disableSubmitBtn(): void;
protected enableSubmitBtn(): void;
protected showSpinner(): void;
protected hideSpinner(): void;
protected disableFieldsInput(): void;
protected enableFieldsInput(): void;
setSubmitButton(button: any): void;
serialize(): AnyObjInterface;
}