Merge pull request #7538 from nkovacic/ui-select

Added ui-select to DefinitelyTyped definitions
This commit is contained in:
Masahiro Wakame 2016-01-11 22:57:39 +09:00
commit 9ece291fcf
2 changed files with 28 additions and 0 deletions

View 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
View 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;
}
}