2

Does anyone know if it is possible to change the HOT default context menu language? Or do I have to create a custom menu that does the exact same thing?

I could not find anything about it over the net.

Thanks, Lucas

1 Answer 1

3

you have use updateSettings to change the context menu configuration after initialization.

  container = document.getElementById('example3');

  settings = {
    data: getData(),
    rowHeaders: true,
    colHeaders: true
  };
  HT = new Handsontable(container, settings);

  HT.updateSettings({
    contextMenu: {
      items: {
        "row_above": {
          name: 'insérer une ligne au-dessus',
        },
        "row_below": {
          name: 'Insérer une ligne ci-dessous',
        },
        "remove_row": {
          name: 'supprimer une ligne',
        }
      }
    }
  })

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.