选择替代列表

时间 2019-02-21
阅读 28
点赞 0
收藏 0
连接arnaud-jeannin

我有下面的小报,效果很好

%ul.nav.nav-pills.nav-fill{role: "tablist"}
  %li.nav-item
     = link_to "#home", class:"nav-link active show", "data-toggle" => "tab" do
        Home
  - @matrices.each do |matrice, i|
      %li.nav-item
        = link_to "#matrice_#{matrice.id}", class:"nav-link", "data-toggle" => "tab" do
           = matrice.name

具有

.tab-content
    %div{id:"home", class:"tab-pane active", role: "tabpanel"}
      CONTENT
     - @matrices.each do |matrice, i|
        %div{id:"matrice_#{matrice.id}", class:"tab-pane", role: "tabpanel"}
          CONTENTS   

我要的不是一个有导航的小报,而是一个为用户体验选择的引导程序。

我该怎么办?这是我试过的,但是到标签ID的链接不起作用

%select.nav.selectpicker{role: "tablist"}
  %option
    = link_to "#home", class:"nav-link active show", "data-toggle" => "tab" do
      Home
  - @matrices.each do |matrice|
    %option
      = link_to "#matrice_#{matrice.id}", class:"nav-link", "data-toggle" => "tab" do
        = matrice.name
尚无答案