Hi Tristan,
Thank you for your response.
Can you please also mention the doc where you got the info for this, just for future reference.
Also, when I am not providing the widget defaults, my widget starts from the corner and I can resize it by dragging and it is responsive.
Code:
{
id: 'custom-widget.widget',
label: 'Custom Device Info Widget',
description: 'This is a sample widget',
component: CustomWidgetComponent,
configComponent: CustomWidgetConfigDemo,
data: {
settings: {
noNewWidgets: false,
ng1: {
options: {
noDeviceTarget: true, groupsSelectable: false,
},
Similarly, if I am trying to add the defaults it is showing like this. Despite of adding the width it is not increasing its width from left side.
Code:
{
id: 'custom-widget.widget',
label: 'Custom Device Info Widget',
description: 'This is a sample widget',
component: CustomWidgetComponent,
configComponent: CustomWidgetConfigDemo,
data: {
settings: {
noNewWidgets: false,
widgetDefaults: {
_width: 1000,
_height: 5
},
ng1: {
options: {
noDeviceTarget: true, groupsSelectable: false,
},
Also sometimes when I provide the height of 5 it has extra space below as you can see in the above image but when I provide anything below 5 it shrinks like this:
Code:
{
id: 'custom-widget.widget',
label: 'Custom Device Info Widget',
description: 'This is a sample widget',
component: CustomWidgetComponent,
configComponent: CustomWidgetConfigDemo,
data: {
settings: {
noNewWidgets: false,
widgetDefaults: {
_width: 1000,
_height: 5
},
ng1: {
options: {
noDeviceTarget: true, groupsSelectable: false,
},
Can you please let me know what could be the potential issue here.
Best Regards,
Samanyu