mm-jsr
    Preparing search index...

    Class JSR

    This is documentation for using JSR API.

    For installation, usage, and more information see: https://github.com/soanvig/mm-jsr

    Index

    Constructors

    Methods

    • Destroy JSR instance, removing all HTML elements (besides container) and event listeners.

      Returns void

      this function does not remove the instance of JSR itself, therefore it does not remove handler already added to JSR, but one can simple forget about this instance, and let garbage-collector to collect it.

      It does not removes original container element.

    • Disable JSR by disallowing value changes, and adding .is-disabled class to the container.

      Returns void

    • Enable JSR by allowing value changes, and removing .is-disabled class from the container.

      Returns void

    • Get index value (ratio).

      Parameters

      • index: number

        index of value to get

      Returns number

      • ratio value
    • Get index value (real).

      Parameters

      • index: number

        index of value to get

      Returns number

      • real value
    • Return whether JSR is enabled or disabled.

      Returns boolean

    • Add handler listening of any value change.

      Parameters

      Returns VoidFunction

      • returns function that allows to remove handler
    • Set index value (ratio).

      Parameters

      • index: number

        index of value to set

      • value: number

        ratio value to set

      Returns void

    • Set index value (real).

      Parameters

      • index: number

        index of value to set

      • value: number

        real value to set

      Returns void