Spaces:
Runtime error
Runtime error
Update app.R
Browse files
app.R
CHANGED
|
@@ -249,6 +249,8 @@ server <- function(input, output, session) {
|
|
| 249 |
options = list(
|
| 250 |
pageLength = 10,
|
| 251 |
lengthMenu = c(10, 25, 50, 100),
|
|
|
|
|
|
|
| 252 |
columnDefs = list(
|
| 253 |
list(className = 'dt-center', targets = "_all"),
|
| 254 |
# Names and identifiers
|
|
@@ -262,7 +264,8 @@ server <- function(input, output, session) {
|
|
| 262 |
# Difference columns
|
| 263 |
list(width = '50px', targets = c(19:25)) # All _Diff columns
|
| 264 |
)
|
| 265 |
-
)
|
|
|
|
| 266 |
) %>%
|
| 267 |
formatStyle(
|
| 268 |
c('Velo_Diff', 'Spin_Diff', 'Ext_Diff', 'IVB_Diff',
|
|
|
|
| 249 |
options = list(
|
| 250 |
pageLength = 10,
|
| 251 |
lengthMenu = c(10, 25, 50, 100),
|
| 252 |
+
scrollX = TRUE, # Enable horizontal scrolling
|
| 253 |
+
fixedColumns = list(left = 3), # Freeze first 3 columns (Name, ID, Pitch)
|
| 254 |
columnDefs = list(
|
| 255 |
list(className = 'dt-center', targets = "_all"),
|
| 256 |
# Names and identifiers
|
|
|
|
| 264 |
# Difference columns
|
| 265 |
list(width = '50px', targets = c(19:25)) # All _Diff columns
|
| 266 |
)
|
| 267 |
+
),
|
| 268 |
+
extensions = 'FixedColumns'
|
| 269 |
) %>%
|
| 270 |
formatStyle(
|
| 271 |
c('Velo_Diff', 'Spin_Diff', 'Ext_Diff', 'IVB_Diff',
|