Child pages
  • 2021.03 Whats new

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With RC2 we added a special Servoy theme for NGClient2, the best way to start using this for testing NGClient2 but not disrupting also NGClient1 is to make a copy of your solution stylesheet, if you stylesheet is named "mysolution.less", make a copy and name that copy "mysolution_ng2.less". If you startup a NGClient2 then when serving out the stylesheet, Servoy will check if there is a "_ng2" variant of the given solution stylesheets name. In that "mysolution_ng2.less" stylesheet you can then point to another copy: @import 'custom_servoy_theme_properties_ng2.less'; you can make, and that properties less file then points to the new "2021.3.0_ng2" Servoy theme file. This way if you start the same solution in NG1 you will just be served out the normal less/css file including our ng1 servoy stylesheet through 'custom_servoy_theme_properties.less' and starting in in NG2 we will serve out another set of stylesheets and a different Servoy theme file. After this you can then start tweaking the NG2 look in the "_ng2" solution stylesheet.

You can switch to test NGClient2 by changing the URL in the browser after you started an NGClient1  /solutions/[solutionname]/index.html → /solution/[solutionname]/index.html. So remove the last "s" from "solutions". You can also change what the client should launch by default in the preferences. then you can go back by adding an "s" to "solution". 

...