バックベース ポータルで Angularjs ui ブーストラップの datepicker を使用しようとしていますが、機能していません。同じコードがバックベース ポータルの外で機能しています。私のHTMLコード
<button type="button" class="btn btn-default" style="border:0px"
uib-datepicker-popup="{{format}}" ng-model="dt"
is-open="status.opened" min-date="minDate" show-weeks="false" show-button-bar="false"
max-date="maxDate" datepicker-options="dateOptions"
date-disabled="disabled(date, mode)" ng-required="true"
close-text="Close" ng-click="open($event)">
<i ><img data-ng-src="{{imageDir}}/calendar.png"/></i></button>
私のJSコード:
$scope.today = function() {
$scope.dt = new Date();
};
$scope.today();
$scope.refresh = function(){
$scope.dt = new Date();
}
$scope.maxDate = new Date(new Date().setDate(new Date().getDate()));
$scope.minDate = new Date(new Date().setDate(new Date().getDate()-7));
$scope.open = function($event) {
$scope.status.opened = true;
};
$scope.setDate = function(year, month, day) {
$scope.dt = new Date(year, month, day);
};
$scope.dateOptions = {
formatYear: 'yy',
startingDay: 1
};
$scope.status = {
opened: false
};
私は自分のhtmlにboostrap.min.cssを含め、ランチパッドサポートフォルダーにangular-ui-bootstrap jsを持っています。Backbaseポータルでangularjs ui boostrapコンポーネントを使用する方法を誰か説明してもらえますか? 前もって感謝します。