row.nameホバー時にテーブル行のを返す R Shiny のリアクティブ入力を作成したいと思います。
R Shiny では でテーブルを作り、renderTableを通して出力しtableOutputます。
これは、既に構築されている plotOutput の clickID と hoverID (それぞれクリックとホバーの場合) と同様に機能するはずです。
JavaScript や jQuery については、次の手順に従って自分でビルドするほど十分には理解していません。
http://rstudio.github.io/shiny/tutorial/#building-inputs
ありがとうございました!
アップデート:
これは私がこれまで持っているjQueryです:
$(document).on('hover', '.table-hover tr', function(){
        var el = $(this);
        $(this).closest("tr").index();
}); 
var selectRowBinding = new Shiny.InputBinding();
$.extend(selectRowBinding, {
        find: function(scope) {
        return $(scope).find(".table-hover");
        },
        getValue: function(el){
        return $(el).closest("tr").index();
        },
        setValue: function(el, value) {
        },
        subscribe: function(el, callback) {
        $(el).on("change.selectRowBinding", function(e) {
        callback();
        });
        },
        unsubscribe: function(el) {
        $(el).off(".selectRowBinding");
        }
});
Shiny.inputBindings.register(selectRowBinding);
しかしinput$selectRowBinding、まだNULLを返しています。バインディングを適切に定義していないと確信しています。
私はこれらの2つのリソースに取り組んできました:
と