Loading js/init.handsontable.csv.js +38 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,44 @@ var table = new Handsontable(this, { data: data, stretchH: 'all', contextMenu: ['row_above', 'row_below', "---------", 'col_left', 'col_right', "---------", 'remove_row', 'remove_col'] contextMenu: { items: { 'row_above': { "name": Drupal.t('Insert row above'), }, 'row_below': { "name": Drupal.t('Insert row below'), }, 'hsep1': "---------", 'col_left': { "name": Drupal.t('Insert column on the left'), }, 'col_right': { "name": Drupal.t('Insert column on the right'), }, 'hsep2': '---------', 'remove_row': { "name": Drupal.t('Remove row'), }, 'remove_col': { "name": Drupal.t('Remove column'), }, 'hsep3': '---------', 'undo': { "name": Drupal.t('Undo'), }, 'redo': { "name": Drupal.t('Redo'), }, 'hsep4': "---------", 'cut': { "name": Drupal.t('Cut'), }, 'copy': { "name": Drupal.t('Copy'), }, } }, }); table.updateSettings({ afterChange: function (e) { Loading js/init.handsontable.json.js +37 −11 Original line number Diff line number Diff line Loading @@ -42,16 +42,42 @@ stretchH: 'all', contextMenu: { items: { 'row_above': {}, 'row_below': {}, 'row_above': { "name": Drupal.t('Insert row above'), }, 'row_below': { "name": Drupal.t('Insert row below'), }, 'hsep1': "---------", 'col_left': {}, 'col_right': {}, 'col_left': { "name": Drupal.t('Insert column on the left'), }, 'col_right': { "name": Drupal.t('Insert column on the right'), }, 'hsep2': '---------', 'remove_row': {}, 'remove_col': {} } 'remove_row': { "name": Drupal.t('Remove row'), }, 'remove_col': { "name": Drupal.t('Remove column'), }, 'hsep3': '---------', 'undo': { "name": Drupal.t('Undo'), }, 'redo': { "name": Drupal.t('Redo'), }, 'hsep4': "---------", 'cut': { "name": Drupal.t('Cut'), }, 'copy': { "name": Drupal.t('Copy'), }, } }, }); table.updateSettings({ Loading Loading
js/init.handsontable.csv.js +38 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,44 @@ var table = new Handsontable(this, { data: data, stretchH: 'all', contextMenu: ['row_above', 'row_below', "---------", 'col_left', 'col_right', "---------", 'remove_row', 'remove_col'] contextMenu: { items: { 'row_above': { "name": Drupal.t('Insert row above'), }, 'row_below': { "name": Drupal.t('Insert row below'), }, 'hsep1': "---------", 'col_left': { "name": Drupal.t('Insert column on the left'), }, 'col_right': { "name": Drupal.t('Insert column on the right'), }, 'hsep2': '---------', 'remove_row': { "name": Drupal.t('Remove row'), }, 'remove_col': { "name": Drupal.t('Remove column'), }, 'hsep3': '---------', 'undo': { "name": Drupal.t('Undo'), }, 'redo': { "name": Drupal.t('Redo'), }, 'hsep4': "---------", 'cut': { "name": Drupal.t('Cut'), }, 'copy': { "name": Drupal.t('Copy'), }, } }, }); table.updateSettings({ afterChange: function (e) { Loading
js/init.handsontable.json.js +37 −11 Original line number Diff line number Diff line Loading @@ -42,16 +42,42 @@ stretchH: 'all', contextMenu: { items: { 'row_above': {}, 'row_below': {}, 'row_above': { "name": Drupal.t('Insert row above'), }, 'row_below': { "name": Drupal.t('Insert row below'), }, 'hsep1': "---------", 'col_left': {}, 'col_right': {}, 'col_left': { "name": Drupal.t('Insert column on the left'), }, 'col_right': { "name": Drupal.t('Insert column on the right'), }, 'hsep2': '---------', 'remove_row': {}, 'remove_col': {} } 'remove_row': { "name": Drupal.t('Remove row'), }, 'remove_col': { "name": Drupal.t('Remove column'), }, 'hsep3': '---------', 'undo': { "name": Drupal.t('Undo'), }, 'redo': { "name": Drupal.t('Redo'), }, 'hsep4': "---------", 'cut': { "name": Drupal.t('Cut'), }, 'copy': { "name": Drupal.t('Copy'), }, } }, }); table.updateSettings({ Loading