JS Enlarge Custom Submit Button

  • Last update:  2020-12-17
  • I. Description

    In many reporting scenarios, we may determine the postion and size of theSubmitbutton by ourselves, instead of using the button in the upper left corner that comes with the system. Now we start the tutorial of customizing theSubmit button. The effect is as follows:

    1606356959301619.gif

    II. Operation steps

    First create a new normal report, insert a button  in cell C6, the button type isnormal buttonand the button name is "submit", the effect is as follows:

    1606356959518230.png

    Then add aClickevent andAfter Initializationevent, the effect is as follows:

     1606356959658833.png

    Add the following code to theClickevent:

    _g('${sessionID}').writeReport();
    FR.Msg.toast("Submit Success!");

    Add the following code in the After Initialization event:

    var el = this.element.children();// Get the current widget
    el.hover(function(e) {// The mouse monitor of the control
         $("#C6-0-0").css(//Get the current C6 cell and assign style
      "-webkit-transform","scale(1.5)"
      );
      $("#C6-0-0").css(
      "-ms-transform","scale(1.5)"
      );
      $("#C6-0-0").css(
      "transform","scale(1.5)"
      );
    }, function(e) {
    $("#C6-0-0").css(
      "-webkit-transform","none"
      );
      $("#C6-0-0").css(
      "-ms-transform","none"
      );
      $("#C6-0-0").css(
      "transform","none"
      );
    });

    III. Save the preview

    The application scenario here is data entry, so use the Data Entry Preview.

    Note: The mobile terminal and H5 interface do not support this effect.

    IV. Completed template

    Attachment List


    Theme: Secondary Development
    • 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