Giter Club home page Giter Club logo

raggrid's Introduction

R ag-Grid

CRAN_Status_Badge Rdoc Downloads from the RStudio CRAN mirror per M=month Downloads from the RStudio CRAN mirror grant total Build Status Project Status: Active โ€“ The project has reached a stable, usable state and is being actively developed. GitHub issues GitHub closed issues

R interface to ag-grid.

This package provides a function aggrid() to display R data via the ag-grid library.

Installation

You may install from CRAN or the development version from github using devtools:

# install from CRAN
install.packages("RagGrid")

# the development version
devtools::install_github('no-types/RagGrid')

# then try RagGrid::aggrid(iris) as a hello world example

Documentation

Please check out the full documentation at (http://raggrid.netlify.com/)

Licensing

RagGrid has a dependency on ag-grid v18.0.1 which provides community and enterprise options. We've bundled both the versions in this package. Please review the licensing options and terms before you use this software. (https://www.ag-grid.com/license-pricing.php)

Thanks to DT for providing a lot of samples which we've used here in the documentation.

raggrid's People

Contributors

hollywoof avatar lelouch77 avatar praveenn77 avatar srikkanth18 avatar vbisrikkanth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

raggrid's Issues

CSV Export?

Thanks for the excellent ag-grid integration for Shiny!

Is it possible to enable grid csv export? I tried the following but it appeared to not affect the aggrid behavior.

RagGrid::aggrid(mtcars, list(showToolPanel=TRUE, suppressCsvExport=FALSE))

The underlying csv export is described in the ag-grid docs.

How to configure default row grouping when pivot mode is active?

Hello,

I am having difficulty configuring a default row grouping when pivot mode is active. When the page/app loads I would like a certain set of rows to be checked in the Columns > Row Group sidebar. What type of R configuration data structure is required to make this configuration work? I've tried a number of data structure formats and none seem to work. For example:

columnDefs = data.frame(
  c(headerName='Price', field='price', pivot=TRUE, rowGroup=TRUE, enableRowGroup=TRUE),
  c(headerName='Quantity', field='quantity', pivot=TRUE, rowGroup=TRUE, enableRowGroup=TRUE)
)

RagGrid::aggrid(
  data,
  colOpts = list(),
  options = list(emablePivot=TRUE, pivotMode=TRUE, columnDefs=columnDefs),
  formattingOptions = list(Price='$0,0.00', Quantity: '$0,0.00')
)

Ideally when the table loads I would like Price and Quantity to both be enabled as Row Groups.

Can you please suggest an alternative data structure to get this working (assuming that's the issue at hand)?

Thank you very much!

Unescape HTML

Is there a way to unescape HTML tags in cell contents as in DT::datatable(escape=FALSE)? I'm afraid my JS skills are very limited. Thx!
image

How to remove row index column?

Can't figure out how to remove the first column from the grid that has the row indexes. There is no label for this column, so I cannot access it programmatically using colOpts.

library(shiny)
library(RagGrid)

ui <- shinyUI(fluidPage(
  title = 'Use the RagGrid package in shiny',
  fluidRow(
    column(2),
    column(8, RagGrid::RagGridOutput('tbl1')),
    column(2)
  )
))

server <- shinyServer(function(input, output, session) {
  output$tbl1 <- renderRagGrid(aggrid(iris))
})

shinyApp(ui = ui, server = server)

Example here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.