Hello
Please teach me how to change the fonts of table view in knime.
Hello @alex1368,
You can use the CSS editor and the Table View (JavaScript) node to change the CSS of the table view.
For your reference, I have attached an image.
I used this node, but I did not get the desired output
Does it have special settings?
For example, I increased the foot size, but the output did not change
Please guide me further
Hi @alex1368, the help documentation for the Table View (javascript) node points at some old documentation but I believe it is still relevant.
The various css classes are listed in this document. I couldnât find a newer version than this, and as I discovered, there is some trial-and-error but hopefully this will get you started:
https://docs.knime.com/2021-12/analytics_platform_css_guide/index.html
Within the css editor, press Ctrl Space (and presumably equivalent in other OS, such as Cmd Space on Mac) to bring up a list of known classes.
The CSS Editor creates a flow variable.
You need to configure the Table View (JavaScript) node to use that flow variable in the âcustomCSSâ setting in the flow variable config, to use that same flow variable created by the CSS Editor.
Once thatâs done, with CSS such as this:
.knime-table-cell {
font-family: cursive;
font-size: 10pt;
font-weight: bold;
color: gold;
background-color: black;
}
.knime-table-header {
font-size: 30pt;
font-weight: bold;
color: cyan;
background-color: blue;
}
⌠you get this when you use âOpen Viewâ on the Table View (JavaScript) node:
If this resolves your question, please mark @tqAkshay95 's earlier response as the solution.
Owww.
This is veryyyyyy⌠interesting.
(saving for later)
âIs it possible to edit the font of the âTable Viewâ node (not JavaScript table view)?â
Because, âtable viewâ (normal) has not varibles configuration.
Hi @Felipereis50 , I donât know of a way.
It works for the javascript version because that provides a flow variable configuration âcustomCSSâ that can accept a stylesheet, but there isnât such an option on the regular Table View.
Thanks for the information.
I used it in both cases, but still the output I wanted was not obtained!!!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.