加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 角度模态背景问题

发布时间:2020-12-17 07:32:43 所属栏目:安全 来源:网络整理
导读:我正在使用angular-bootstrap模态,但我有模态背景的问题.我是angular-bootstrap的新手,我希望有人能帮助我. 当我点击模态背景时,它隐藏了模态弹出窗口,但我想保留模态背景,直到单击取消. modal popup code is here 任何人请为此建议解决方案. 谢谢 如果使用A
我正在使用angular-bootstrap模态,但我有模态背景的问题.我是angular-bootstrap的新手,我希望有人能帮助我.

当我点击模态背景时,它隐藏了模态弹出窗口,但我想保留模态背景,直到单击取消.

modal popup code is here

任何人请为此建议解决方案.

谢谢

如果使用Angular UI Bootstrap modal,则可以将背景设置为静态(→存在背景但在模态窗口外部单击时不关闭模态窗口):
var modalInstance = $modal.open({
  templateUrl: 'myModalContent.html',controller: ModalInstanceCtrl,backdrop: 'static',resolve: {
    items: function () {
      return $scope.items;
    }
  }
});

见plunker.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读