Customize the datatable button text

I would like to know how to change the text in the "Add new record" button.
My form is in French but I can change this part.

Hello @Darsh,

Welcome to Plumsail Community!

You can change the button text using this code:

fd.rendered(function() {
   fd.control('DataTable1').widget.setOptions({ toolbar: [{ name: "create", text: "New Text" }],  })
1 Like

Thanks ! Worked perfectly :smiley:

1 Like

How do I change the font of the "Add new record" text to make it larger, bold, or a different color?

Hello @donald.kantik,

You can change the appearance of any form element using CSS. To make the '+ Add new record' text large add this CSS to the form:

a.k-button.k-button-icontext.k-grid-add {
    font-size: 16px;