Use multiple-placeholder
if you need to set placeholder if model not empty
Use list-placeholder
if you need to set label for empty list
{{bundle3}} diff --git a/docs/examples/single/controller.js b/docs/examples/single/controller.js index 4a3e314..d60f079 100644 --- a/docs/examples/single/controller.js +++ b/docs/examples/single/controller.js @@ -1,9 +1,9 @@ angular.module('selectDemo') .controller('selectSingleController', function ($scope, ShopObj) { - $scope.shopObjShort = ShopObj.get(); + $scope.shopObj = ShopObj.get(); - $scope.shopObjShort.$promise.then(function(data) { + $scope.shopObj.$promise.then(function(data) { $scope.bundle = {a:1}; //data[3]; }) }); \ No newline at end of file diff --git a/docs/examples/single/template.html b/docs/examples/single/template.html index f291bd3..5ecf1c4 100644 --- a/docs/examples/single/template.html +++ b/docs/examples/single/template.html @@ -4,7 +4,7 @@Single
@@ -13,7 +13,7 @@ Single
-oi-options="item for (key, item) in shopObjShort" +oi-options="item for (key, item) in shopObj" ng-model="bundle"diff --git a/docs/examples/validation/template.html b/docs/examples/validation/template.html index d49c1da..5146044 100644 --- a/docs/examples/validation/template.html +++ b/docs/examples/validation/template.html @@ -77,14 +77,15 @@Validation
-Also you can set maximum number of characters allowed in the input
+Also you can set maximum number of characters allowed in the input and minimum number of characters to prevent searching if query is too small
@@ -96,7 +97,8 @@ Validation
oi-options="item.name for item in shopArr" ng-model="bundle3" oi-select-options="{ - maxlength: 3 + maxlength: 4, + minlength: 2 }"diff --git a/index.html b/index.html index efad9a3..13cdb74 100644 --- a/index.html +++ b/index.html @@ -10,9 +10,9 @@ - - - + + + @@ -52,4 +52,4 @@-