JS Hide the Triangle Button of the Parameter Pane

  • Last update:  2020-12-15
  • I. Overview

    1.1 Requirement

    When previewing a template with a parameter pane, there will be a triangle button at the junction between the parameter pane and the home interface. How to hide this triangle button?

     


    1.2 Solution

    When the template is loaded, locate button elements and set them to be hidden or removed.

    1)Hide the button

    $('.parameter-container-collapseimg-up').hide();

    2)Remove the button 

    $('.parameter-container-collapseimg-up').remove();

    II. Sample

    2.1 Steps

    Take the template GettingStarted.cpt as an example to hide the triangle button appeared in the parameter interface in the Preview mode.

    1)Open the Designer and double-click the template to switch to the Edit Parameter Interface. Click on a bland area on the pane and add an After Initialization event.

     

    Input the following JavaScript codes:

    setTimeout(function() { $('.parameter-container-collapseimg-up').hide(); }, 100);

    2)Save the template and click [Preview]. You will find the triangle button is hidden. See the demonstration above.

     

    2.2 Preview

    Save the template and click [Pagination Preview]. The preview effect on a PC is shown as below:

     

    III. Download the template

    Attachment List


    Theme: Parameter
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy