File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 179
179
<resource src =" notebook_test_any_3.html " ></resource >
180
180
<resource src =" notebook_test_associate_1.html " ></resource >
181
181
<resource src =" notebook_test_associateBy_1.html " ></resource >
182
+ <resource src =" formatHeader.html " ></resource >
182
183
<resource src =" notebook_test_rename_3.html " ></resource >
183
184
<resource src =" notebook_test_rename_4.html " ></resource >
184
185
<resource src =" notebook_test_rename_5.html " ></resource >
Original file line number Diff line number Diff line change @@ -149,5 +149,17 @@ Formats the specified column headers.
149
149
150
150
<!-- -FUN formatHeader-->
151
151
152
+ ``` kotlin
153
+ df
154
+ // Format all column headers with bold
155
+ .formatHeader().with { bold }
156
+ // Format the "name" column (including nested) header with red text
157
+ .formatHeader { name }.with { textColor(red) }
158
+ // Override "name"/"lastName" column formating header with blue text
159
+ .formatHeader { name.lastName }.with { textColor(blue) }
160
+ // Format all numeric column headers with underlines
161
+ .formatHeader { colsOf<Number ?>() }.with { underline }
162
+ ```
163
+
152
164
<!-- -END-->
153
165
<inline-frame src =" resources/formatHeader.html " width =" 100% " />
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ korro {
118
118
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/*.kt" )
119
119
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/*.kt" )
120
120
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/utils/*.kt" )
121
+ include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/render/*.kt" )
121
122
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/collectionsInterop/*.kt" )
122
123
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/column/*.kt" )
123
124
include(" src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/info/*.kt" )
You can’t perform that action at this time.
0 commit comments