Skip to content Skip to sidebar Skip to footer

How To Flip Up Shapes In Shiny By Clicking A Button?

I want to include a semantic shape element in my shiny app (shapes: https://semantic-ui.com/modules/shape.html#/usage). I am able to construct the shape by using shinyjs and shiny

Solution 1:

I think you need this JS code:

jsCode <- "
$('.shape').shape();$('#test').on('click', function(){$('.shape').shape('flip up');});
"

Or just:

jsCode <- "
    $('.shape').shape();
    "

and in the ui:

  tags$button(id="test", class="ui button", "Flip", onclick="$('.shape').shape('flip up');")

Post a Comment for "How To Flip Up Shapes In Shiny By Clicking A Button?"