rstudio/shiny

Add support for ifelse logic in conditionalPanel

開放

#843 建立於 2015年5月22日

 (3 則留言) (4 個反應) (0 位負責人)R (1,890 個分叉)batch import
Difficulty: IntermediateEffort: LowHelp WantedPriority: LowType: Enhancement :bulb:

倉庫指標

星標
 (5,649 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Many times I want to do something along the lines of

conditionalPanel("input.test", "yep"),
conditionalPanel("!input.test", "nope")

Some syntactic sugar here would be awesome :) Hopefully the above could be translated into

conditionalPanel("input.test", iftrue = "yep", iffalse = "nope")

(clearly I'm not great at naming arguments)

貢獻者指南