Skip to content

Add bootstrap tab plugin and row selection plugin#1

Open
huer12 wants to merge 1 commit intoericmbarnard:masterfrom
huer12:master
Open

Add bootstrap tab plugin and row selection plugin#1
huer12 wants to merge 1 commit intoericmbarnard:masterfrom
huer12:master

Conversation

@huer12
Copy link
Copy Markdown

@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)
Copy link
Copy Markdown

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) {
Copy link
Copy Markdown

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