How to change the update text in editor

How to change the update text in editor

SamanthaTsangSamanthaTsang Posts: 8Questions: 3Answers: 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: 30Questions: 8Answers: 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: 8Questions: 3Answers: 0

    it works !! Thanks !!

  • SamanthaTsangSamanthaTsang Posts: 8Questions: 3Answers: 0

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

  • allanallan Posts: 57,737Questions: 1Answers: 9,204 Site admin
    Answer ✓
    div.DTE_Form_Buttons button {
      font-size: 12px;
      color: blue;
    }
    

    Allan

Sign In or Register to comment.