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

Checkboxes not working in DataTable (follow-up to #1038) #1059

Closed
julianbenner opened this issue Feb 7, 2019 · 1 comment
Closed

Checkboxes not working in DataTable (follow-up to #1038) #1059

julianbenner opened this issue Feb 7, 2019 · 1 comment
Assignees
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Milestone

Comments

@julianbenner
Copy link

The newly implemented checkbox feature in BF 1.4.1 doesn't work properly as it doesn't include the necessary parameters in the customOptions parameter. I suspect this happens because the columnDefs part of the parameter is set initially and then overridden when passing a custom value.

For instance, using this as a value for customOptions does work:

'columnDefs': [{'targets':0, 'checkboxes': {'selectRow': true}}],'select':{'style':'multi+shift'}
@Lb-lea
Copy link

Lb-lea commented Feb 27, 2019

Do have a more detailed explanation of what does not work for you?
Here is an example of a very simple table with checkbox that works, please add the option you wanted to have on it:

<b:dataTable id="table-example" value="#{lineList}" var="line"
		customOptions="'language': { select': { 'rows': {  '_': '%d custom plural',    '0': '',   '1': '%d custom singular'     }  }    } " 
		onselect="ajax:datatableControleur.onSelect(line, typeOfSelection, indexes);"
	        ondeselect="ajax:datatableControleur.onDeselect(line, typeOfSelection, indexes);"
		paginated="false" searching="false">
               <b:dataTableColumn label="Checkbox column" orderable="false"  selection-mode="multiple" />
              <b:dataTableColumn label="Normal column" value="#{line.foo}">

@stephanrauh stephanrauh self-assigned this Aug 3, 2019
@stephanrauh stephanrauh added bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation. labels Aug 3, 2019
@stephanrauh stephanrauh added this to the v1.5.0 milestone Aug 3, 2019
@TheCoder4eu TheCoder4eu modified the milestones: v1.5.0, v1.4.2 Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Projects
None yet
Development

No branches or pull requests

4 participants