Developing widgets
Here you will find tips / tricks on how to develop for widgetsInterdum et malesuada
fames ac ante ipsum primis in faucibus. Duis commodo lobortis laoreet. Praesent id urna at erat vestibulum egestas vel quis neque. Etiam sed aliquam purus, ac lacinia libero. Donec eu venenatis sapien. Etiam eu risus id lorem fringilla aliquet. Nullam libero ex, fringilla ac lobortis sit amet, fermentum ac nulla. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam tempor rutrum justo, scelerisque convallis metus. Morbi tellus felis, tincidunt eget finibus vitae, facilisis sed leo.
Special code snippets
Only for the special things that we can use
Running a widgetconfig (not in a config modal).
With the following code we can add the content of any widget into any part of the screen.
As an example i took a widget called freeform.
When the widget is loaded on the page, the default configuration can be found in the global
variable : _wf.widget.config.<name of widget>.
DO NOT change that config, so always use $.extend(true... to make a copy of the default cfg.
var combinedconfig = $.extend(true,{destid:"#leo"},_wf.widget.config.freeform.json)
_c2._base.createCustomForm(combinedconfig );