Skip to content
Discussion options

You must be logged in to vote

Hi @zilch42,

The onRenderHroupHeader argument must be a function returning a React component, in your example it returns a function. To render HTML elements using this approach we can't use JSX as it won't be rendered. We need to explicitly use React.createElement, it's first argument takes the type of HTML tag, second is it's props (herer it's null), the third one are children. Please take a look at the example:

library(shiny)
library(shiny.fluent)

navigation_styles <- list(
  root = list(
    height = "100%",
    width = "30%",
    boxSizing = "border-box",
    border = "1px solid #eee",
    overflowY = "auto"
  )
)

link_groups <- list(
  list(
    name = "Pages",
    links = list(
  …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by zilch42
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