Skip to content

Commit

Permalink
Dev Improved navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Dec 17, 2015
1 parent d729daf commit eea4416
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions protected/views/labels/update.php
Expand Up @@ -78,8 +78,8 @@ function defaultValueRenderer(instance, td, row, col, prop, value, cellPropertie
}

if (cellProperties.readOnly === true) {
console.log('setting');
td.style.background = '#555';
td.style.setProperty('background-color','#eee', 'important');
td.style.setProperty('pointer-events','none');
}
Handsontable.renderers.TextRenderer.apply(this, args);
}
Expand Down Expand Up @@ -191,6 +191,20 @@ function defaultValueRenderer(instance, td, row, col, prop, value, cellPropertie
"hsep1": "---------",
remove_row: {},
}
},
tabMoves: function(e) {
if (!e.shiftKey && hot1.getSelected()[1] == (hot1.countCols() - 2)
|| (e.shiftKey && hot1.getSelected()[1] == 0)
) {
return {
row: 1,
col: -hot1.countCols() + 2
};
}
return {
row: 0,
col: 1
};
}


Expand All @@ -213,7 +227,8 @@ function createColumns() {
result.push({
data: '',
width: '300px',
readOnly: true
readOnly: true,


});
console.log(result);
Expand Down

0 comments on commit eea4416

Please sign in to comment.