Bon*_*eth 1 jquery semantic-ui
我有一个接受某些用户输入的模式。如果用户得到正确的答案,则他/她应该能够看到调光器后面的动画。我试过了
$('.basic.modal')
.modal('setting',{
closable : true,
onDeny : function(){},
onApprove : function(){}
})
.modal('hide others')
.modal('show')
.modal('hide dimmer');
Run Code Online (Sandbox Code Playgroud)
和
$('.basic.modal')
.modal('setting',{
closable : true,
onDeny : function(){},
onApprove : function(){}
})
.modal('hide others')
.modal('hide dimmer')
.modal('show');
Run Code Online (Sandbox Code Playgroud)
两者都不起作用。我该怎么办?
您可以通过将不透明度传递给dimmerSettings来隐藏调光器,如下所示:
$('#your-modal').modal({
dimmerSettings: { opacity: 0 }
}).modal('show');Run Code Online (Sandbox Code Playgroud)
在这里找到答案