为什么点击事件没有在mozila firefox上执行,在Split按钮下拉列表的第一个按钮,我必须设置默认按钮,当我尝试没有打开下拉列表时,直接点击该默认按钮,它在Firefox上不起作用,但它在chrome上工作正常,请给我一些信息。
请参阅下面的拆分按钮下拉列表代码:
<div class="col-md-12">
<div class="btn-group dropdn-action">
<button type="button" class="btn btn-default"><?php $url=$this->Html->url(array('controller'=>'Groups')); echo $this->Html->link('<span class="glyphicon glyphicon-plus"></span> Add New Group','#',array('name'=>'add','id'=>'add','onclick'=>"check_perform_add('$url/add');",'escape'=>false));?></button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li role="presentation"><?php echo $this->Html->link('<span class="glyphicon glyphicon-edit"></span> Edit','#',array('name'=>'editallfrm','id'=>'editallfrm','onclick'=>"check_perform_edit('$url');",'escape'=>false));?></li>
<li role="presentation"><?php echo $this->Html->link('<span class="glyphicon glyphicon-trash"></span> Delete','#',array('name'=>'deleteallfrm','id'=>'deleteallfrm','onclick'=>'check_perform_delete();','escape'=>false));?></li>
</ul>
</div>
</div>
&#13;
答案 0 :(得分:0)
不要在library(shiny)
ui <- fluidPage(
actionButton("show_p", "Toggle"),
"Some text to wrap the",
conditionalPanel(condition = 'input.show_p % 2', id="nice", style="display: inline-block;", "hidden"),
"conditional panel."
)
server <- function(session, input, output) {}
shinyApp(ui, server)
内添加<a>
,使用bootstrap可以直接使用`,如下所示:
button
希望有所帮助