Set Button Vertical Text Display

  • Last update:March 23, 2021
  • I. Overview

    1.1 Expected Effect

    In the report, after adding a button, you can modify the button name. Generally, button names are displayed horizontally. If you need to display vertically, how to achieve it? As shown below:1.png


    1.2 Implementation

    In addition to designing the button image style first and adding the image implementation method to the initial background of the button, it can also be implemented by adding JS.

    II. Example

    2.1 Prepare Template

    Create a new template, add a "button widget" to the parameter pane, and adjust the button shape. As shown below:

    2.png




    2.2 Add Event

    Add a "After Initialization" event to the button widget, define the button name and display mode in the event. As shown below:

    3.png

    JavaScript code

    Note: If the widget name of the custom button is pb_c, then it should be written as: fr_btn_PB_C

    setTimeout(function(){
    $("#fr-btn-BUTTON0").html('Frist'+'<br>'+'Second')
    },100);

    2.3 Effect Preview

    Save the template, click "Pagination Preview", the effect is as shown in the figure below:

    4.png


    III. Template Download

    Click to download template:

    Set_button_vertical_text_display.cpt


    Attachment List


    Theme: Report Application
    • 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