How to use SilkUI patterns in not SilkUI theme?

How to use SilkUI patterns in not SilkUI theme?

  

Hi,

We have a site that based on London theme and we would like to add some patterns from SilkUI. We've added patterns as dependencies but it doesn't work as there is an error on page ReferenceError: Can't find variable: SilkUI 

Where is the script the defines SilkUI variable that we can include in our pages?


Thank you

Solution

Hi Nick,

There is a web block 'WidgetsForLayout' from silk that you need to put in your layouts for the patterns to work.

You can also reference this answer for the few extra pieces you will need on your layout:

https://www.outsystems.com/forums/discussion/19273/silkui-is-not-defined/#Post74770

Let me know if you have any issues,

Justin

Solution

Hi Justin,

Thanks for the tip - it solved the problem. I've also managed to get it work by implicitly including SilkUI JS scripts.