widgets.pbInput.pbInput.ctrl.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
Show all versions of ui-designer-artifact-builder-generator-angularjs Show documentation
This module is a generator on AngularJS for Artifact Builder
function PbInputCtrl($scope, $log, widgetNameFactory) {
'use strict';
this.name = widgetNameFactory.getName('pbInput');
this.inputId = widgetNameFactory.getId('pbInput');
this.ngModelOptions = { allowInvalid: true, debounce: $scope.properties.debounce }
if (!$scope.properties.isBound('value')) {
$log.error('the pbInput property named "value" need to be bound to a variable');
}
}