% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dt2_deps.R
\name{dt2_deps}
\alias{dt2_deps}
\title{Build htmlwidgets dependencies for DT2}
\usage{
dt2_deps(
  bs = c("bootstrap5", "core"),
  include_bs = TRUE,
  extensions = character()
)
}
\arguments{
\item{bs}{\code{"bootstrap5"} (default) or \code{"core"} styling mode.}

\item{include_bs}{Logical; if TRUE and \code{bs="bootstrap5"}, include Bootstrap assets.
Default TRUE. Set FALSE only if your host page already provides Bootstrap.}

\item{extensions}{Character vector of extension names (e.g., \code{c("Buttons", "Select")}).
Use \code{dt2_extensions()} to see all available extensions.}
}
\value{
List of \code{htmlDependency()} objects in correct load order.
}
\description{
Constructs the dependency list dynamically based on the requested extensions.
Only loads CSS/JS for selected extensions, keeping the page lightweight.
}
\details{
All version numbers are read from \code{\link[=.dt2_lib_versions]{.dt2_lib_versions()}} (defined in
\code{dt2_check_updates.R}) so there is a single source of truth for versions.
}
\keyword{internal}
