How to change the update text in editor

How to change the update text in editor

SamanthaTsangSamanthaTsang Posts: 12Questions: 4Answers: 0

Hello, may I know how to change the text from "Update" to "Approve" (highlighted in yellow below)? Thanks.

This question has accepted answers - jump to:

Answers

  • ECEGROUPEECEGROUPE Posts: 78Questions: 29Answers: 1
    edited November 2022 Answer ✓

    Hello,
    You have to change it in the language section ;)

    editor = new $.fn.dataTable.Editor( {
         i18n: {
              edit: {
                   button: "Edit",
                   title:  "Edit entry",
                   submit: "Update"
              },
    } );
    

    change submit: "Update" to submit: "Approve".

    Documentation : https://editor.datatables.net/reference/option/i18n

  • SamanthaTsangSamanthaTsang Posts: 12Questions: 4Answers: 0

    it works !! Thanks !!

  • SamanthaTsangSamanthaTsang Posts: 12Questions: 4Answers: 0

    Hi,
    May I further ask how to change the font size and color of the "update" button?
    Thanks so much !!

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓
    div.DTE_Form_Buttons button {
      font-size: 12px;
      color: blue;
    }
    

    Allan

Sign In or Register to comment.