Skip to content
Discussion options

You must be logged in to vote

Hi @Hackerdaniel2012,

please take a look at the following example:

library(shiny)
library(shiny.fluent)

ui <- fluentPage(
  GroupedList(
    items = list("Item A", "Item B", "Item C", "Item D", "Item E"),
    groups = list(
      list(key = "g1", name = "Some items", startIndex = 0, count = 2),
      list(key = "g2", name = "More items", startIndex = 2, count = 3)
    ),
    selectionMode = 0,
    onRenderCell = JS(
      "(depth, item) => (
        jsmodule['react'].createElement('span', { style: { paddingLeft: 50 } }, item)
      )"
    ),
    groupProps = list(
      onRenderHeader = JS(
        "(props) => (
          jsmodule['react'].createElement(
            jsmodule['@fluentui/r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hackerdaniel2012
Comment options

Answer selected by Hackerdaniel2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants