![](/img/trans.png)
[英]Change color of changed cell in rhandsontable on condition
我正在使用 rhandsontable。 我想使用 rhandsontable 的更改顏色 function 如果條件不滿足,它將更改單元格的顏色更改為“紅色”。 我是 R 的新手,不知道該怎么做。 誰能幫幫我嗎? ...
[英]Change color of changed cell in rhandsontable on condition
我正在使用 rhandsontable。 我想使用 rhandsontable 的更改顏色 function 如果條件不滿足,它將更改單元格的顏色更改為“紅色”。 我是 R 的新手,不知道該怎么做。 誰能幫幫我嗎? ...
[英]How to set the focus to the first row first column cell in a rhandsontable in an RShiny app?
我需要將焦點放在 RShiny 應用程序中 rhandsontable 的第一行第一列單元格上。 尋找與本論壇中討論的解決方案類似的解決方案: Set the focus to a specific datagrid cell , QML:Set focus TextInput in a tabl ...
[英]How to consolidate action buttons for individual objects into a single selectInput() in R shiny?
下面發布的代碼允許用戶通過單擊操作按鈕來添加/刪除用於數據輸入的單個 rhandsontable 表。 對於刪除,每個表下面都有自己的操作按鈕。 任何想法如何將這些刪除操作按鈕合並到一個selectInput()中,其中列出了所有要刪除的表? 我已經嘗試取消嵌套刪除 function observ ...
[英]Is there a simple way to sum columns in a table rendered in randsontable that expands with additional value inputs from the user?
在運行底部發布的代碼時,表格會呈現為 rhandsontable ,用戶可以通過單擊actionButton()添加列,將鼠標懸停在表格上時可以通過右鍵單擊來添加/刪除行,以及底部行提供列總和。 然而,如下圖所示,插入行中的值不會出現在列總計中。 有沒有辦法讓列總計在所有行擴展/收縮時加起來? 沒 ...
[英]Is there a way to not set rhandsontable height to a huge value in order to have the dropdown menu correctly render?
運行本文底部的代碼會顯示一個帶有下拉選項的 rhandsontable。 使下拉菜單出現的唯一方法是設置一個非常大的表格高度,但這會產生將actionButton()向下推的丑陋效果。 如果您注釋掉表格高度的行(在代碼中用# <<注明),則actionButton()位置會解析但表格下 ...
[英]How to add columns to table rendered with rhandsontable with dropdown menus using an action button?
我正在處理使用 rhandsontable 呈現的表格,該表格使用下拉菜單將用戶輸入到表格中。 我的下拉方法基於帖子中提供的指導有沒有辦法為 rhandsontable 中的不同行設置不同的下拉選項? . 我正在嘗試添加一個功能,用戶單擊actionButton()以便向表中添加一列,並按順序對 ...
[英]Why does the table embedded in a separate tab panel from the action buttons that modify not correctly render?
運行底部發布的代碼時,在代碼的server()部分底部激活outputOptions()時,“從表”選項卡中呈現的對象“hottable”無法正確呈現,如圖所示以下。 注釋掉outputOptions()和“hottable”正確呈現。 但是outputOptions()的使用在此代碼中至關重要, ...
[英]Why is reactivity with rhandsontable not working when crossing tab panels?
我正在運行兩個可擴展的 rhandsontables,它們應該始終具有相同的列數和相同的列標題,盡管行不同。 其中一個表(在“hottable1”中呈現的 myDF1)是主表,用戶在其中添加/刪除包含該表的tabPanel()中的列,第二個表(在“hottable2”中呈現的 myDF2)根據數字 ...
[英]Possible to have one of the rows in rhandsontable use dropdown for user selection and rest of the rows to require manual data entry?
我正在嘗試調整答案以發布有沒有辦法為 rhandsontable 中的不同行提供不同的下拉選項? 在下面的代碼中我的情況。 我希望渲染表的前兩行要求用戶手動輸入數值(在更完整的代碼中,這是從中派生的,用戶能夠手動輸入數值來代替渲染的默認值),並且最后一行(行名“select_option”)需要在 ...
[英]How to reactively generate additional rhandsontable tables for user inputs with click of an action button in R shiny?
我一直在使用操作按鈕將列添加到 R Shiny 中的一系列鏈接的rhandsontable表。但是,現在,我正在嘗試弄清楚如何通過單擊操作按鈕來生成其他rhandsontable表模板。 這可能嗎? 每個添加的表都需要獨立於其他表,在允許用戶輸入和存儲值到獨立於其他表的添加表的意義上,盡管添加的“ ...
[英]How to sum all colums in rhandsontable when reactively updating the table in Shiny with user inputs?
我一直在嘗試應用Shiny 后應用程序中的解決方案:如何按列獲取總和以適應我的情況,但無法使其正常工作。 我只想在每次用戶更改其上方的字段之一時重新計算表格底部的“總計”行,但是在取消注釋下面注釋掉的observe()時我收到一條錯誤消息代碼。 這個observe()是我嘗試實現上述帖子中提供的解 ...
[英]How run a shiny app inside of a function?
我想運行一個 function,里面有一個 shiny 應用程序,但我不能。 單獨運行此示例,我首先從輸入數據框中刪除第一列; 然后我運行 shiny 來更改數據框中的任何必要內容,當我關閉 window 時,一個新的 object 將保存更改; 最后我在數據框中創建了一個新列。 這是一個示例腳本 ...
[英]How to reset row selection in rhandsontable in Shiny app
在 Shiny 應用程序中使用 rhandsontable,我想檢測用戶何時取消選擇一行。 在此示例中,當我單擊一行時,我可以使用 input$mytable_select$select$r 檢測選擇,但是當我在表外單擊時,input$mytable_select$select$r 仍然設置為行號, ...
[英]How to format numbers in a specific row using js in a table rendered with rhandsontable?
在這篇文章底部的簡化代碼中,我相信是 js 用於格式化使用 rhandsontable 呈現的表格的輸出。 我在代碼的 js 部分嘗試了行/列格式並取得了一些成功。 但是,如下圖所示,我將如何設置表格第 2 行的格式,使其顯示為 integer(四舍五入為數字 = 0,因此沒有小數),對於添加的所 ...
[英]How to insert reactive values into a table rendered using rhandsontable based on triggers in that table?
在運行本文底部顯示的代碼時,使用 rhandsontable package 在 window 的右下角呈現了一個表(“hottable”),其中該表的第 2 行反映了來自input$choices object 的用戶輸入selectInput()在它的正上方呈現。 相反,我想改變這一點,從而使 ...
[英]How to insert a reactive value into rhandsontable?
我正在嘗試將來自單獨用戶輸入的反應值插入到使用rhandsontable呈現的表中。 示例代碼發布在這篇文章的底部。 下面是一張最能說明我正在嘗試做的事情的圖片。 有關如何執行此操作的任何建議? 代碼: ...
[英]How to add columns to a data frame rendered with rhandsontable in R Shiny with an action button?
我正在努力通過操作按鈕將列添加到通過 rhandsontable package 呈現的數據框(出於以后的格式化原因,我需要使用操作按鈕來添加列而不是依賴 rhandsontable 的上下文菜單)。 下面的代碼幾乎可以正常工作,但我每第二次點擊“添加”操作按鈕都會得到奇怪的結果。 可能是由於我不 ...
[英]How to preserve manual edits to tables rendered with the rhandsontable package in R shiny?
下面的代碼允許用戶手動編輯通過 rhandsontable 呈現的表格中的值,此外,還可以向表格中添加列。 但是,當通過“添加”操作按鈕添加列時,所有先前的編輯都將被刪除。 添加列后如何保留編輯內容? 我瀏覽了如何保存使用 rhandsontable r package 所做的編輯中提供的解決方案 ...
[英]How to format different rows differently in rhandsontable
我正在使用rhandsontable( ) package 構建一個用戶輸入表。我試圖根據我在 RHandsontable 中的行數字(百分比)格式化中找到的內容,將一些行格式化為整數,一些格式化為百分比。 但在該示例中,只有一行是 integer 格式,另一行是百分比格式。 我需要將 2 行格式化 ...
[英]persistentState not working when page refreshed, Handsontable- React.js
我目前正在使用帶有 react.js 的 handsontable,即使用戶刷新頁面,我也必須手動更改表格的列寬和排序順序。 我為handsontable 的設置啟用了persistentState屬性。 刷新頁面后,對列寬、排序順序等所做的手動更改將不會持續存在,並且表格恢復為默認 state。 ...