Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
111 additions
and
113 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# Generated by roxygen2 (4.1.0): do not edit by hand | ||
|
||
export(D3TableFilter) | ||
export(D3TableFilterOutput) | ||
export(JS) | ||
export(clearFilters) | ||
export(confirmEdit) | ||
export(disableEdit) | ||
export(enableEdit) | ||
export(rejectEdit) | ||
export(renderTableFilter) | ||
export(renderD3TableFilter) | ||
export(setCellValue) | ||
export(setFilter) | ||
export(setFootCellValue) | ||
export(setRowClass) | ||
export(tableFilter) | ||
export(tableFilterOutput) | ||
import(htmlwidgets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# ------------------------------------------------------ | ||
# Minimal shiny app demonstrating the tableFilter widget | ||
# server.R | ||
# ------------------------------------------------------ | ||
library(shiny) | ||
library(htmlwidgets) | ||
library(tableFilter) | ||
|
||
data(mtcars); | ||
|
||
shinyServer(function(input, output, session) { | ||
output$mtcars <- renderTableFilter({ | ||
|
||
# Define table properties. See http://tablefilter.free.fr/doc.php | ||
# for a complete reference | ||
tableProps <- list( | ||
alternate_rows = TRUE, | ||
btn_reset = TRUE, | ||
sort = TRUE, | ||
sort_config = list( | ||
# alphabetic sorting for the row names column, numeric for all other columns | ||
sort_types = c("String", rep("Number", ncol(mtcars))) | ||
) | ||
); | ||
|
||
tableFilter(mtcars, tableProps, showRowNames = TRUE, rowNamesColumn = "Model"); | ||
}) | ||
}) | ||
# ------------------------------------------------------ | ||
# Minimal shiny app demonstrating the tableFilter widget | ||
# server.R | ||
# ------------------------------------------------------ | ||
library(shiny) | ||
library(htmlwidgets) | ||
library(D3TableFilter) | ||
|
||
data(mtcars); | ||
|
||
shinyServer(function(input, output, session) { | ||
output$mtcars <- renderD3TableFilter({ | ||
|
||
# Define table properties. See http://tablefilter.free.fr/doc.php | ||
# for a complete reference | ||
tableProps <- list( | ||
alternate_rows = TRUE, | ||
btn_reset = TRUE, | ||
sort = TRUE, | ||
sort_config = list( | ||
# alphabetic sorting for the row names column, numeric for all other columns | ||
sort_types = c("String", rep("Number", ncol(mtcars))) | ||
) | ||
); | ||
|
||
D3TableFilter(mtcars, tableProps, showRowNames = TRUE); | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# ------------------------------------------------------ | ||
# Minimal shiny app demonstrating the tableFilter widget | ||
# ui.R | ||
# ------------------------------------------------------ | ||
shinyUI(fluidPage( | ||
title = 'Basic usage of TableFilter in Shiny', | ||
fluidRow( | ||
column(width = 12, tableFilterOutput('mtcars')) | ||
) | ||
)) | ||
# ------------------------------------------------------ | ||
# Minimal shiny app demonstrating the tableFilter widget | ||
# ui.R | ||
# ------------------------------------------------------ | ||
shinyUI(fluidPage( | ||
title = 'Basic usage of TableFilter in Shiny', | ||
fluidRow( | ||
column(width = 12, D3TableFilterOutput('mtcars')) | ||
) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
library(shiny) | ||
library(htmlwidgets) | ||
library(tableFilter) | ||
library(D3TableFilter) | ||
|
||
shinyUI(fluidPage( | ||
title = 'Colourful tables', | ||
fluidRow( | ||
column(width = 12, tableFilterOutput('colours')) | ||
column(width = 12, D3TableFilterOutput('colours')) | ||
) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
library(shiny) | ||
library(htmlwidgets) | ||
library(tableFilter) | ||
library(D3TableFilter) | ||
|
||
shinyUI(fluidPage( | ||
title = 'Full featured TableFilter example', | ||
fluidRow( | ||
column(width = 12, tableFilterOutput('mtcars')) | ||
column(width = 12, D3TableFilterOutput('mtcars')) | ||
) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
library(shiny) | ||
library(htmlwidgets) | ||
library(tableFilter) | ||
library(D3TableFilter) | ||
|
||
shinyUI(fluidPage( | ||
title = 'Test tableFilter performance', | ||
fluidRow( | ||
column(width = 2, | ||
selectInput("rows", "Rows", choices = c(100, 500, 1000, 5000, 10000, 30000, 53940), selected = 500, multiple = FALSE), | ||
radioButtons("coloring", "Coloring", choices = c("Yes" = TRUE, "No" = FALSE), selected = FALSE)), | ||
column(width = 10, tableFilterOutput('diamonds')) | ||
column(width = 10, D3TableFilterOutput('diamonds')) | ||
) | ||
)) |
2 changes: 1 addition & 1 deletion
2
inst/htmlwidgets/tableFilter.js → inst/htmlwidgets/D3TableFilter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
HTMLWidgets.widget({ | ||
|
||
name: "tableFilter", | ||
name: "D3TableFilter", | ||
|
||
type: "output", | ||
|
||
|
File renamed without changes.
Oops, something went wrong.