Skip to content

Conversation

@huer12
Copy link

@huer12 huer12 commented Jan 8, 2014

I have written two plugins which solve the following issues:

KoGridRowSelectionPlugin.js: Possibility to change the selected items programmatically

koGridBootstrapTabPlugin.js: If the grid is placed within a bootstrap tab, then the layout is not updated correctly without this plugin

this._grid = grid;

this.selectedItems.subscribe(function (newValues) {
if (_this._grid.$$selectionPhase == true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (_this._grid.$$selectionPhase == true)
if (_this._grid.$$selectionPhase === true)

should be === right


for (var i = 0; i < _this._grid.rowFactory.rowCache.length; i++) {
var rowCache = _this._grid.rowFactory.rowCache[i];
if (rowCache.entity == newValue) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (rowCache.entity == newValue) {
if (rowCache.entity === newValue) {

should be using ===

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants