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

[selection-list-line] the lines selected shoud be checked and disabled #1154

Closed
achermen opened this issue May 18, 2016 · 2 comments
Closed

Comments

@achermen
Copy link

Current behaviour

[ If the line is (not isSelectionnable) and it is isSelected
you shoud disabled the ligne

Expected behaviour

renderselectionbox

The lines selected of the list shoud be checked and disabled]

Versions

Focus-core: [0.14.0]
Focus-components: [^4.3.0]

@GuenoleK
Copy link
Contributor

GuenoleK commented May 27, 2016

@achermen Hello ! Can i have more details on the bug, because i tested on an advance search which renders lists. I put the isSelection props to false. There is no more checkbox displayed, which is the normal behaviour.

@Ephrame
Copy link
Contributor

Ephrame commented May 31, 2016

@achermen Please have a look at https://github.com/KleeGroup/focus-components/blob/9de43fc817d80ecf26078be8b2d5d84531b433f7/src/list/selection/line.js#L75

You can set a function on your line component to decide wether your line is selectable or not.

if(this.selectionnableInitializer) {
            this._isSelectionnable = this.selectionnableInitializer(data);
        }

@Ephrame Ephrame closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants