Jump to content
  • How to create a Range filter in a Text Area disabling the left and right handles in Spotfire® using Javascript


    handles.gif.fddc337a853df9999637a4815f96618f.gif

     

    Introduction

    There are many options for Spotfire users to interact with the Range Filter. However, if one wants to constrain the option of just being able to shift a window (of predetermined fixed size) sideways and not let the users change the lower and upper limit of the range, use the following Javascript Code. Sample dxp (RangeFilter.dxp) attached for reference. Disclaimer: The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script per your implementation specifications that suit best your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    // To achieve this usecase one needs to disable the left and right handles of the range filter.
    
    $( document ).ready(function(){
      setTimeout(function(){
        // Unbind() method removes event handlers from selected elements.
        $(".Handle.sf-element.sf-element-thumb.TouchTarget").unbind()
      }, 3000);
    })
     

    References

    License:  TIBCO BSD-Style License

    rangefilter.dxp

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...