mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
// Type definitions for Uniform.js
|
|
// Project: https://github.com/pixelmatrix/uniform
|
|
// Definitions by: flyfishMT <https://github.com/flyfishMT/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="jquery" />
|
|
|
|
interface UniformCoreOptions {
|
|
activeClass?: string;
|
|
autoHide?: boolean;
|
|
buttonClass?: string;
|
|
checkboxClass?: string;
|
|
checkedClass?: string;
|
|
disabledClass?: string;
|
|
eventNamespace?: string;
|
|
fileButtonClass?: string;
|
|
fileButtonHtml?: string;
|
|
fileClass?: string;
|
|
fileDefaultHtml?: string;
|
|
filenameClass?: string;
|
|
focusClass?: string;
|
|
hoverClass?: string;
|
|
idPrefix?: string;
|
|
inputAddTypeAsClass?: boolean;
|
|
inputClass?: string;
|
|
radioClass?: string;
|
|
resetDefaultHtml?: string;
|
|
resetSelector?: any;
|
|
selectAutoWidth?: boolean;
|
|
selectClass?: string;
|
|
selectMultiClass?: string;
|
|
submitDefaultHtml?: string;
|
|
textareaClass?: string;
|
|
useID?: boolean;
|
|
wrapperClass?: string;
|
|
}
|
|
|
|
interface UniformOptions extends UniformCoreOptions {
|
|
[option: string]: any;
|
|
}
|
|
|
|
interface Uniform {
|
|
(options?: UniformOptions): JQuery;
|
|
update(elemOrSelector?: any): void;
|
|
restore(elemOrSelector?: any): void;
|
|
elements: JQuery[];
|
|
defaults: UniformOptions;
|
|
}
|
|
interface JQueryStatic {
|
|
uniform: Uniform;
|
|
}
|
|
|
|
interface JQuery {
|
|
uniform: Uniform;
|
|
}
|