yonicd / slickR

slick carousel htmlwidget for R
https://yonicd.github.io/slickR/
Other
159 stars 14 forks source link

target = "_self" #61

Open gplngr opened 3 years ago

gplngr commented 3 years ago

Hi @yonicd,

first of all: Thanks a lot for slickR!
At the moment the link targets are set to "_blank" by default (https://cran.r-project.org/web/packages/slickR/vignettes/basics.html#adding-links). I would like to link on the same page and replace with target = "_self", but did not yet find a documented way to achieve this. Is there such an option? If not, I think it would make a great feature.

Thanks, G

yonicd commented 3 years ago

Thanks for opening this issue. You are correct this is currently hardcoded https://github.com/yonicd/slickR/blob/master/R/dom_utils.R#L75 . I'll have the think how to best expose this option since it is not readily accessible or a natural part of the main call