SmartClient Version: v13.1p_2025-03-31/AllModules Development Only (built 2025-03-31)
Safari, Chrome, Firefox on MacOS
Even though it seems harmless, I want to report a warning related to AdaptiveMenu that I see in my application.
Please run this test case in the browser console (I'm using the showcase, Shiva skin and Spacious density):
You'll see this WARN:
Safari, Chrome, Firefox on MacOS
Even though it seems harmless, I want to report a warning related to AdaptiveMenu that I see in my application.
Please run this test case in the browser console (I'm using the showcase, Shiva skin and Spacious density):
Code:
isc.DynamicForm.create({
ID: "exampleForm",autoDraw:false,
width: "100%",
fields: [
{
name: "username",
title: "Username",
type: "text",
width: "*",
required: true,
defaultValue: "bob"
},
{
name: "email",
title: "Email",
required: true,
width: "*",
type: "text",
defaultValue: "bob@isomorphic.com"
}
]
});
isc.AdaptiveMenu.create({
ID: "adaptiveMenu",autoDraw:false,
menuButtonTitle: "More...",
align: "center",
defaultLayoutAlign: "center",
items: [
{
title: "Foo Bar 1",
icon: "Edit"
},
{
title: "Foo Bar 2",
icon: "Edit"
},
{
title: "Foo Bar 3",
icon: "Edit"
},
{
title: "Foo Bar 4",
icon: "Edit"
},
{
title: "Foo Bar 5",
icon: "Cancel",
visibleWhen: {fieldName: "exampleForm.values.username", operator: "equals", value: "bob"}
},
{
title: "Foo Bar 6",
icon: "Cancel",
visibleWhen: {fieldName: "exampleForm.values.username", operator: "notEqual", value: "bob"}
},
{
title: "Foo Bar 7",
icon: "Close",
enableWhen: {fieldName: "exampleForm.values.username", operator: "equals", value: "bob"}
}
]
});
isc.ToolStrip.create({
ID: "toolStrip",autoDraw:false,
height: 32,
width: "100%",
layoutMargin: 0,
defaultLayoutAlign: "center",
members: [
isc.IButton.create({title: "Close", icon: "Close", autoFit: true}),
adaptiveMenu,
isc.IButton.create({title: "Save", icon: "Save", autoFit: true})]
});
isc.Window.create({
ID: "testWindow",autoDraw:false,
title: isc.version,
width:600, height:400, showFooter: true,
items: [exampleForm],
footerControls: [toolStrip]
}).show()
Code:
*17:35:50.669:WARN:FilteredList:isc_FilteredList_4 (dataSource: isc_DataSource_4, created by: undefined):addAt(): cannot add {title: "Foo Bar 6",
icon: "Cancel",
visibleWhen: Obj,
getAdaptiveMenu: getAdaptiveMenu(),
} as the ResultSet already contains this object.
Comment