I am trying to use css editor node in knime 4.5.1 version to give some formatting and also to hide input of the user on web in string input widget using css code but even adding css code in css editor and passed that through variable in string input widget then also it’s not doing any changes in the string input widget.
Basically i am trying to create password input box on web in which when user is adding their password in input box and input should be hidden by square, circle or disc as we do when entering our password during login in into our mail. i was able to do it in knime 4.2 but i am not able to do it in knime 4.5
So guys if you have any suggestion pls guide.
Hello, welcome to the KNIME Forum!
Could you please share with us a simple workflow (CSS Editor + the modified widget are enough) so we are able to investigate?
You need to turn on Legacy mode on in order for widgets to work with CSS in the newer versions. (The option is just above JSON on the left of the screen when you are adjusting the interactive view layout) However, you will lose some modern options. Re-execution goes away, which was a deal breaker for me. I would really like to have that custom css option back for widgets again without losing capabilities though…
Thank you so much @iCFO your suggestion work perfectly but i didn’t understand which modern options i am gonna loose and how this Re-execution works if you guide me very helpful for so i wil take care of it and also i am bit confuse to how to write css code in knime css editor like when to use .knime-qf-title and all or is their any documentation for this which i can refer to write css code.
Thanks again for your advice.
The only things that I have noticed loosing is the re-execution (automatically executing downstream on settings changes) and their newer modern look. The Re-Execution setting is usually on the second tab in the config windows.
This site gives some info on accessing the areas that can be customized by CSS Editor. I also tend to search the forum for specific examples.
Thanks @iCFO your given link actually very useful and ya actually it’ modern look way better than legacy one.
Sorry to bother you again @iCFO but i am not able to use another widget in my workflow
Means i am trying to add some description before that string input widget but i am not able to see any description above it even after i tried with the legacy mode then also for your reference i have also attached my small workflow.
css_editor_test.knwf (10.9 KB)
It doesn’t look like the Text Output Widget is supported in Legacy Mode. I turned off Legacy and it worked on my end.
css_editor_test2.knwf (11.0 KB)
Oh but i want css functionality too when i turned off legacy css editor is not working btw which version of knime you are using. because in knime 4.5.1 when i am adding Text Output Widget even legacy mode is turned off then it is adding text after other widgets and if i legacy mode turned on then it is not showing any text @iCFO.
Thanks for your reply.
I know that there are ticket requests for adding back custom CSS support for widgets. Can you add us to the request list @ScottF? The giant font size of those labels really drives me crazy…
And Thank you so much for your reply and your suggestion it was really very helpful and also can you guide me where can i see the list of issue for which ticke is been requested so i can check which functions on knime we are still facing problems.
@KnimeSpecial - I don’t believe that there is any way to customize “widgets” without the Legacy mode on, so we are forced to make an all or nothing decision. In your instance the text output widget isn’t even supported in Legacy Mode, so I doubt it would be possible with that node without underlying platform changes.
You can vote for ideas on the Feedback category of this forum, but there is no published list of KNIME’s internal tickets that I am aware of. I just knew that there was a ticket on this one because I remember this custom CSS widget issue coming up on several threads. I always just tag @ScottF for ticket requests, which I am sure he just loves…
Here it is with the title added using the Data App Header component with the KNIME logo and styling, but I adjusted the size and spacing a bit for you.
css_editor_test3.knwf (510.1 KB)
Thank you so so much @iCFO for your help for as of now i can use this solution which you have given but actually knime should give css editor functionality to format widget also and thanks once again @iCFO for your help.