input-range

This commit is contained in:
Joan Sanchez 2018-08-23 14:10:54 +02:00
parent d39ef8827f
commit de4d9c5bab
4 changed files with 35 additions and 0 deletions

View File

@ -38,3 +38,4 @@ import './pagination/pagination';
import './searchbar/searchbar';
import './table';
import './th';
import './input-range';

View File

@ -0,0 +1,3 @@
<div>
<input type="range">
</div>

View File

@ -0,0 +1,31 @@
import ngModule from '../../module';
import Input from '../../lib/input';
import './style.scss';
export default class InputRange extends Input {
constructor($element, $scope, $attrs, vnTemplate, $transclude) {
super($element, $scope);
}
}
InputRange.$inject = ['$element', '$scope', '$attrs', '$transclude'];
ngModule.component('vnInputRange', {
template: require('./index.html'),
/* transclude: {
leftIcons: '?tLeftIcons',
rightIcons: '?tRightIcons'
}, */
controller: InputRange,
bindings: {
/* value: '=model',
label: '@?',
name: '@?',
disabled: '<?',
readonly: '<?',
rule: '@?',
type: '@?',
vnTabIndex: '@?',
onChange: '&' */
}
});