You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as you see, it is basically just the task of copy pasting the props and names and assigning correct .NET types. A few hints on that (it may be possible that you do not need this though):
nested objects need their own abstractions, for example the font (check if they are implemented already, Font does exist for example.)
data array should be seq<#IConvertible>
number should be an int (for example for pixels) or float (for example for fractions) depending on context of the reference docs
things that can be a single value or an array of values on the JS side should use the single or multi pattern you can see for example here
Activity
amakhno commentedon Oct 28, 2021
@kMutagene
Hi!
Can I try to implement it at the weekend? We need this functionality in the project, and I want to know if it's being implemented by someone right now
kMutagene commentedon Oct 29, 2021
Hi @amakhno ,
To my knowledge, this is not currently worked on, so feel free to have a go!
All properties of the Slider object can be found here alongside the correct property names
The pattern we use for layout objects can be for example seen here: https://github.com/plotly/Plotly.NET/blob/dev/src/Plotly.NET/Layout/ObjectAbstractions/Common/Annotation.fs
as you see, it is basically just the task of copy pasting the props and names and assigning correct .NET types. A few hints on that (it may be possible that you do not need this though):
Fontdoes exist for example.)data arrayshould beseq<#IConvertible>numbershould be an int (for example for pixels) or float (for example for fractions) depending on context of the reference docsAnd a function for adding such an object to the layout here for F#, and here for the C# extension.
If you have additional questions feel free to ask here or in the fslab discord channel!
plotly#120 Add slider + tests without docs
plotly#120 Add slider + tests without docs
plotly#120 Add layout slider
kMutagene commentedon Nov 16, 2021
closed via #232