nice-elements 1.7.9 → 1.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +2 -0
- package/dist/nice.min.js +1 -1
- package/dist/style.css +5 -10
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
- package/src/components/nice-dropdown/nice-dropdown.js +2 -0
- package/src/components/nice-yesno/nice-yesno.scss +5 -10
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.7.
|
|
3
|
+
# Nice elements v1.7.10
|
|
4
4
|
|
|
5
5
|
Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
|
|
6
6
|
|
package/bower.json
CHANGED
package/dist/nice.js
CHANGED
|
@@ -2316,6 +2316,7 @@ angular.module('niceElements')
|
|
|
2316
2316
|
model: '=', // Aka model
|
|
2317
2317
|
list: '=', // List of options
|
|
2318
2318
|
onChange: '&?',
|
|
2319
|
+
onSelect: '&?', // Like onChange but always return objects
|
|
2319
2320
|
isDisabled: '=',
|
|
2320
2321
|
fieldWidth: '@',
|
|
2321
2322
|
labelWidth: '@',
|
|
@@ -2553,6 +2554,7 @@ angular.module('niceElements')
|
|
|
2553
2554
|
// Trigger on change
|
|
2554
2555
|
$timeout(function () {
|
|
2555
2556
|
if ($scope.onChange) $scope.onChange({ model: obj });
|
|
2557
|
+
if ($scope.onSelect) $scope.onSelect({ model: angular.copy($scope.selected) });
|
|
2556
2558
|
})
|
|
2557
2559
|
};
|
|
2558
2560
|
|