問題タブ [shinywidgets]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - updateRadioGroupButtons は css を削除します
radioGroupButtons
このコードに基づいてさまざまな色を使用しています: https://github.com/dreamRs/shinyWidgets/issues/41#
選択肢を更新できるようにしたいのですが、 で更新すると色が消えupdateRadioGroupButtons
ます。選択した値のみを更新している場合はすべて問題ありませんが、更新するchoiceValues
とchoiceNames
色が消えます。
再現可能なコード:
r - Shinyjsでshinydashboardボックスのスタイルを変更する
ユーザーがいるタブに応じて、shinydashboard ボックスの色を変更しようとしています。そのために、tabsetPanel から入力値を取得し、shinyjs を使用して box-header クラスの css を変更しようとしています。残念ながら、私の試みはどれも成功していません。再現可能な例を次に示します (色はまだタブに適応していませんが、2 番目の部分でそれを行います)。
runjs への最初の呼び出しと 2 番目の呼び出しの間のすべての組み合わせを試しましたが、すべて失敗しました。