##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r2:8ec37bf1b4d1 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
dom-form.d.ts
27 lines | 813 B | video/mp2t | TypeScriptLexer
import { NodeOrString, GenericObject } from "./interfaces";
interface DomForm {
/**
* Serialize a form field to a JavaScript object.
*/
fieldToObject(inputNode: NodeOrString): GenericObject;
/**
* Serialize a form node to a JavaScript object.
*/
toObject(fromNode: HTMLFormElement | string): GenericObject;
/**
* Returns a URL-encoded string representing the form passed as either a
* node or string ID identifying the form to serialize
*/
toQuery(fromNode: HTMLFormElement | string): string;
/**
* Create a serialized JSON string from a form node or string
* ID identifying the form to serialize
*/
toJson(formNode: HTMLFormElement | string, prettyPrint?: boolean): string;
}
declare const domForm: DomForm;
export = domForm;