File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8282 const tr = document . createElement ( "tr" ) ;
8383 linha . forEach ( ( cel , i ) => {
8484 const td = document . createElement ( "td" ) ;
85- td . innerHTML = cel . texto . replace ( / \n / g, "<br>" ) ;
85+ td . innerHTML = cel . text . replace ( / \n / g, "<br>" ) ;
8686 td . style . backgroundColor = cel . bg ;
87- td . style . color = cel . cor ;
87+ td . style . color = cel . color ;
8888 td . style . position = "relative" ;
8989 if ( i > 0 ) {
9090 const resizerLeft = document . createElement ( "div" ) ;
112112 function ordenarPorColuna ( indice ) {
113113 ordemCrescente = { [ indice ] : ! ( ordemCrescente [ indice ] ?? false ) } ;
114114 data . sort ( ( a , b ) => {
115- const v1 = a [ indice ] . texto . toLowerCase ( ) ;
116- const v2 = b [ indice ] . texto . toLowerCase ( ) ;
115+ const v1 = a [ indice ] . text . toLowerCase ( ) ;
116+ const v2 = b [ indice ] . text . toLowerCase ( ) ;
117117 if ( v1 < v2 ) return ordemCrescente [ indice ] ? - 1 : 1 ;
118118 if ( v1 > v2 ) return ordemCrescente [ indice ] ? 1 : - 1 ;
119119 return 0 ;
You can’t perform that action at this time.
0 commit comments