ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

Add `id` to bsCollapsePanel #133

Open warnes opened 3 years ago

warnes commented 3 years ago

Resolves #132

(Also adds renv environment for development convenience. I'll be glad to drop it if you prefer.)

warnes commented 3 years ago

To maximize backwards compatibility, the current parameter list for bsCollapsePanel and bsCollapseLink is:

function(title, ..., id, value = title, style = NULL)

with id being optional.

It would better match the usual shiny pattern to put id first, and make both id and title required, thus:

function(id, title, ..., value=id, style=NULL)