mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #7538 from nkovacic/ui-select
Added ui-select to DefinitelyTyped definitions
This commit is contained in:
commit
9ece291fcf
9
ui-select/ui-select-tests.ts
Normal file
9
ui-select/ui-select-tests.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/// <reference path="ui-select.d.ts" />
|
||||
|
||||
angular
|
||||
.module('main', ['ui-select'])
|
||||
.config(function(uiSelectConfig: angular.ui.select.ISelectConfig) {
|
||||
uiSelectConfig.appendToBody = true;
|
||||
uiSelectConfig.resetSearchInput = true;
|
||||
uiSelectConfig.theme = "bootstrap";
|
||||
});
|
||||
19
ui-select/ui-select.d.ts
vendored
Normal file
19
ui-select/ui-select.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// Type definitions for ui-select 0.13.2
|
||||
// Project: https://github.com/angular-ui/ui-select
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare module "ui-select" {
|
||||
var _: string;
|
||||
export = _;
|
||||
}
|
||||
|
||||
declare module angular.ui.select {
|
||||
interface ISelectConfig {
|
||||
appendToBody: boolean;
|
||||
resetSearchInput: boolean;
|
||||
theme: string;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user