mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added angular touchspin
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
// Type definitions for Angular Touchspin v1.0.0
|
||||
// Project: https://github.com/nkovacic/angular-touchspin
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
//// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
|
||||
declare module "angular-touchspin" {
|
||||
let _: string;
|
||||
export = _;
|
||||
}
|
||||
|
||||
declare module angularTouchSpin {
|
||||
interface ITouchSpinOptions {
|
||||
min?: number;
|
||||
max?: number;
|
||||
step?: number;
|
||||
decimals?: number;
|
||||
stepInterval?: number;
|
||||
forceStepDivisibility?: string; // none | floor | round | ceil
|
||||
stepIntervalDelay?: number;
|
||||
verticalButtons?: boolean;
|
||||
verticalUpClass?: string;
|
||||
verticalDownClass?: string;
|
||||
initVal?: number;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
prefixExtraClass?: string;
|
||||
postfixExtraClass?: string;
|
||||
mousewheel?: boolean;
|
||||
buttonDownClass?: string;
|
||||
buttonUpClass?: string;
|
||||
buttonDownTxt?: string;
|
||||
buttonUpTxt?: string;
|
||||
}
|
||||
|
||||
interface ITouchSpinConfig extends ITouchSpinOptions { }
|
||||
|
||||
interface ITouchSpinConfigProvider {
|
||||
defaults(touchSpinOptions: ITouchSpinOptions): void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user