so far to cutomize modal width i have done this
var modalInstance = $modal.open({
animation: $scope.animationsEnabled,
templateUrl: 'AddProtocolElement',
controller: 'ProtocolElementDialogController',
backdrop: 'static',
size: 'lg',
resolve: {
items: function () {
return $scope.items;
}
}
});
and override its modals lg attribute as
.modal-lg{
width:1100px !important
}
it is fine but now what I needed is to have multiple customized lg sized modals on same screen. Here is HTMl
<script type="text/ng-template" id="AddProtocolElement">
<form name="elementForm" id="elementForm" action="#" novalidate class="form-horizontal" role="form">
<div class="modal-header ">
<h3 class="modal-title">{{formHeading}} Protocol Element</h3>
</div>
<div class="modal-body">
<!-- here goes the body -->
</div>
<div class="modal-footer ">
<!-- here goes the footer -->
</div>
</form>