Skip to content

Sliders #120

Description

@kMutagene
No description provided.

Activity

  1. amakhno commented on Oct 28, 2021

    @amakhno
    Contributor

    @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

  2. kMutagene commented on Oct 29, 2021

    @kMutagene
    CollaboratorAuthor

    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):

    • 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

    And 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!

  3. added 3 commits that reference this issue on Nov 13, 2021
  4. kMutagene commented on Nov 16, 2021

    @kMutagene
    CollaboratorAuthor

    closed via #232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions