Skip to content
Discussion options

You must be logged in to vote

Hi @kunjiangkun,

The original intention of changing the argument type to DynamicObj[] was to support arguments of different types (see #414), because in the final schema, args is a json array with arbitrary types.

This means that you now have to create dynamic objects with field names set to your argument names. Here is a simple example:

usingPlotly.NET;usingPlotly.NET.LayoutObjects;usingDynamicObj;varmode1=newDynamicObj.DynamicObj();mode1.SetValue("mode","markers");varmode2=newDynamicObj.DynamicObj();mode2.SetValue("mode","lines");varmyBtn1=UpdateMenuButton.init(Args:newDynamicObj.DynamicObj[]{mode1},Label:"Markers",Method:StyleParam.UpdateMethod.Res…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected bykunjiangkun
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@kunjiangkun@kMutagene