javascript - angularjs ui-bootstrap modal in aside -


i have used example of https://angular-ui.github.io/bootstrap/ modal , every thing works fine.

with code, can open modal in example:

$scope.open = function (size) {      var modalinstance = $uibmodal.open({         animation: true,         templateurl: '/resources/views/pages/tasks/edit.html',         size: size,      });      modalinstance.result.then(function (selecteditem) {         $scope.selected = selecteditem;     }, function () {         $log.info('modal dismissed at: ' + new date());     }); }; 

for trigger / button use this:

<button type="button" class="btn btn-default" ng-click="open()">open me!</button> 

till here works fine. want open model 'aside' (like right of screen) found code:

 <button class="btn white active"             data-toggle="modal"             data-target="#task_modal"             ui-toggle-class="modal-open-aside"             ui-target="body" >  </button> 

combined whit div opens modal right of screen

<div class="modal fade inactive ng-scope " id="task_modal" data-backdrop="false" style="display: none;">     <div class="right white b-l col-md-8">      </div> </div> 

the problem is, second example, can't set every option; keyboard: true , close model on backdrop click.

i searched lot solution, every site gives examples needing 'more' plugins. , think must way fix without plugins.

can help?

this 2 lines of css solve problem

  .modal.fade:not(.in) .modal-dialog {       -webkit-transform: translate3d(25%, 0, 0);       transform: translate3d(25%, 0, 0);   } 

demo


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -