Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bootstrap tab plugin and row selection plugin #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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