javascript - stop moving the freeze column in handson table -


*

1) **current code: can able freeze col , can able move col whereever want in handson table.

2) requirement :i want stop moving freeze column in handson table. in below code can move freeze col , move how stop move of freeze col ? can guys please on this?

3) have checked in handson doc not find method this?

4) have method if missed out?

5) can please guide me on ?

        $postlink(): void {                 const el: htmlelement = this.$document[0].createelement("div");                  this.hot = new handsontable(el, {                     "beforecolumnmove": this.onbeforecolumnmove,                     "columnsorting": true,                     "sortindicator": true,                     "onfilterchange": this.onfilterchange.bind(this),                     "contextmenu": {                         "callback": this.oncontextmenuitemselected,                         "items": {                             "freeze": {                                 "name": "freeze",                                 "disabled": _.negate(this.isfreezecontextmenuitemenabled)                             },                             "unfreeze": {                                 "name": "unfreeze",                                 "disabled": _.negate(this.isunfreezecontextmenuitemenabled)                             }                         }                     }                 });       move , freeze call happens here :          oncontextmenuitemselected(key: string, selection: tableselection): void {                 // tslint:disable-next-line:no-any                 const hot: = this;                   if (key === "freeze") {                       hottablecomponent.isdone=true;                     hot.getplugin("manualcolumnfreeze").freezecolumn(selection.start.col);                     hot.render();                   } else if (key === "unfreeze") {                   }                     hot.getplugin("manualcolumnfreeze").unfreezecolumn(selection.start.col);                     hot.render();                   strong text                 } else {                     throw new error(`contextmenu key not recognized: ${key}`);                 }             }              onbeforecolumnmove(indexesofcolumnstobemoved: array<number>, indexoftargetposition: number): boolean {                 const length     = indexesofcolumnstobemoved && indexesofcolumnstobemoved.length;                  if (!length) {                     return false;                 }                  const firstindex = indexesofcolumnstobemoved[0];                 const lastindex  = indexesofcolumnstobemoved[length - 1];                   return !(indexoftargetposition > location_nonspecific_col_configs.length                     || firstindex >= location_nonspecific_col_configs.length                     || lastindex >= location_nonspecific_col_configs.length);             }               isfreezecontextmenuitemenabled(): boolean {                 // tslint:disable-next-line:no-any                 const hot: = this;                  const startx: number | undefined = hot.getselected()[1];                  return _.isfinite(startx) && startx > 0 && startx < location_nonspecific_col_configs.length;             }              isunfreezecontextmenuitemenabled(): boolean {                 // tslint:disable-next-line:no-any                 const hot: = this;                  const startx: number | undefined = hot.getselected()[1];                  return _.isfinite(startx) && startx > 0 && startx < location_nonspecific_col_configs.length;             }** 

*


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -