2017-12-07 14 views
0

私はR光沢のあるアプリに絶対的なPanelを持っていて、mouseoverの動作に応じてその不透明度を変更しようとしています。カーソルがパネル上にある場合は、不透明度は、私は以下のコードを試してみましたが、それは関係なく、マウスオーバーアクションパネルに、私が欲しいRでのマウスオーバー時に不透明度を変更するShiny

         fluidPage(
             tags$head(tags$style(
              HTML(' 
     #input_date_control {opacity : 0.65;} 
     #sel_date {opacity: 1;}') 
             )), 
           absolutePanel(id = "input_date_control", class = "panel panel-default", fixed = TRUE, 
               draggable = TRUE, top = 60, left = "auto", right = 20, bottom = "auto", 
               width = 230, height = 213, 

    box(title = 'Selector', width = 11.5, status = 'primary', solidHeader = TRUE, 

                tags$head(
                tags$style(
                 ".selectize-dropdown, .selectize-input, .selectize-input { 
                 line-height: 10px; 
                 }" 
)), 

    selectizeInput("disease", label = "Select disease('s)", 
       choices = unique(salmonella_all$Disease), multiple = T, 
       options = list(maxItems = 12, placeholder = 'Select a disease'), 
       selected = "Chlamydia"), 




    dateRangeInput("daterange", "Select date range:", 
       start = "2014-01-07", 
       end = "2017-10-15", 
       min = "2014-01-07", 
       max = "2017-10-15" 
       )))) 

The output of the code

のパネルが透明になり1 orelse 0.5

になりますカーソルがパネル

答えて

0

使用

上のtheresなしにマウスオーバーし、不透明である場合にのみ、ときに透明であることを
+0

これは質問に対する答えを提供しません。十分な[評判](https://stackoverflow.com/help/whats-reputation)があれば、[投稿にコメントする]ことができます(https://stackoverflow.com/help/privileges/comment)。代わりに、[質問者からの明確化を必要としない回答を提供する](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-c​​an- i-do-代わりに)。 - [レビューの投稿](/レビュー/低品質の投稿/ 18185642) –