harveyl888 / shinyExtra

Some additional functions for shiny apps
3 stars 0 forks source link

Bug in SXSortable coloring #6

Closed happyshows closed 8 years ago

happyshows commented 8 years ago

The 2nd col does not display color properly after option dragged from 1st col to 2nd.

tagList(
      SXSortable('sort1', labels = list(list("label 1", "label 2", "label 3"), list("label 4", "label 5")), 
                 styleclass = list("success", "primary"), headers=list("title 1", "title 2"), height = 100),
    SXSortable('sxst_sb',list(list("label 1", "label 2", "label 3"),  list("test")), 
               styleclass = list("info", "success"),colorByGroup = T,
               headers=list("Not Included", "Included"))
    )

image

harveyl888 commented 8 years ago

Thanks for bringing this up. I can reproduce and will look into a fix as soon as possible. In the meantime a workaround is to remove the underscore from the id, eg sxstSb instead of sxst_sb.