R/get_display_order.R

Defines functions reset_order get_display_order

get_display_order <- function(widget) {
  od <- get_model_display_order(widget)
  order(od)
}


reset_order <- function(N, index) {
  
  if(length(index) > 0) {
    newIndex <- 1:N
    newIndex[which(newIndex %in% index)] <- NA
    newIndex <- c(newIndex, index)
    newIndex <- newIndex[which(!is.na(newIndex))]
    order(newIndex)
  } else 1:N
}

Try the loon.shiny package in your browser

Any scripts or data that you put into this service are public.

loon.shiny documentation built on Oct. 8, 2022, 5:05 p.m.