@@ -36,12 +36,12 @@ const Event = {
3636 * @param {{ model: any, el: HTMLElement } } props - The widget properties.
3737 * @param {Document } doc - The document object to use for creating elements.
3838 */
39- function render ( { model, el } , doc ) {
39+ function render ( { model, el } ) {
4040 // Main container with a unique class for CSS scoping
4141 el . classList . add ( "bigframes-widget" ) ;
4242
4343 // Add error message container at the top
44- const errorContainer = doc . createElement ( "div" ) ;
44+ const errorContainer = document . createElement ( "div" ) ;
4545 errorContainer . classList . add ( "error-message" ) ;
4646 errorContainer . style . display = "none" ;
4747 errorContainer . style . color = "red" ;
@@ -51,8 +51,8 @@ function render({ model, el }, doc) {
5151 errorContainer . style . borderRadius = "4px" ;
5252 errorContainer . style . backgroundColor = "#ffebee" ;
5353
54- const tableContainer = doc . createElement ( "div" ) ;
55- const footer = doc . createElement ( "div" ) ;
54+ const tableContainer = document . createElement ( "div" ) ;
55+ const footer = document . createElement ( "div" ) ;
5656
5757 // Footer styles
5858 footer . style . display = "flex" ;
@@ -63,16 +63,16 @@ function render({ model, el }, doc) {
6363 '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif' ;
6464
6565 // Pagination controls
66- const paginationContainer = doc . createElement ( "div" ) ;
67- const prevPage = doc . createElement ( "button" ) ;
68- const pageIndicator = doc . createElement ( "span" ) ;
69- const nextPage = doc . createElement ( "button" ) ;
70- const rowCountLabel = doc . createElement ( "span" ) ;
66+ const paginationContainer = document . createElement ( "div" ) ;
67+ const prevPage = document . createElement ( "button" ) ;
68+ const pageIndicator = document . createElement ( "span" ) ;
69+ const nextPage = document . createElement ( "button" ) ;
70+ const rowCountLabel = document . createElement ( "span" ) ;
7171
7272 // Page size controls
73- const pageSizeContainer = doc . createElement ( "div" ) ;
74- const pageSizeLabel = doc . createElement ( "label" ) ;
75- const pageSizeInput = doc . createElement ( "select" ) ;
73+ const pageSizeContainer = document . createElement ( "div" ) ;
74+ const pageSizeLabel = document . createElement ( "label" ) ;
75+ const pageSizeInput = document . createElement ( "select" ) ;
7676
7777 prevPage . textContent = "<" ;
7878 nextPage . textContent = ">" ;
@@ -84,7 +84,7 @@ function render({ model, el }, doc) {
8484 // Page size options
8585 const pageSizes = [ 10 , 20 , 50 , 100 , 200 , 500 , 1000 ] ;
8686 for ( const size of pageSizes ) {
87- const option = doc . createElement ( "option" ) ;
87+ const option = document . createElement ( "option" ) ;
8888 option . value = size ;
8989 option . textContent = size ;
9090 if ( size === model . get ( ModelProperty . PAGE_SIZE ) ) {
@@ -158,7 +158,7 @@ function render({ model, el }, doc) {
158158 header . style . cursor = "pointer" ;
159159
160160 // Create a span for the indicator
161- const indicatorSpan = doc . createElement ( "span" ) ;
161+ const indicatorSpan = document . createElement ( "span" ) ;
162162 indicatorSpan . classList . add ( "sort-indicator" ) ;
163163 indicatorSpan . style . paddingLeft = "5px" ;
164164
0 commit comments