-
Notifications
You must be signed in to change notification settings - Fork 822
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
Option to select multiple items in Tiles View #117
Comments
Hi @ravikadri :) Just to ensure I understand, do you mean when you apply a View Formatting Def, your wanting to be able to select multiple items? There is a 'hideSelection' property that can be set to false and this allows you to select multiple row's when you apply a View Formatting definition. It would look like this: Here is what it looks like with true: Here is what it looks like with false. There might be some additional formatting needing to apply to make sure it looks how you want. I might be completely off base in my analysis of your question, so feel free to let me know if I'm completely wrong... :) |
Thank you for prompt reply. Appreciated. I am performing this in OOB Library and also attached the JSON file for reference. Let me know, your thought on this. Steps to reproduce. Here are my few observations
Scenario 2: Thanks! |
I think it is a bug. Here is the link to Chris bug. https://github.com/SharePoint/sp-dev-docs/issues/2395 |
I see, ok cool. So just to be sure I'm not misunderstanding, your looking for a View Formatting Definition which more closely aligns with the tile structure? For your scenario 2, be sure that your "hideSelection" and "hideListHeader" values for true/false are not enclosed in quotes ("), or they are perceived as string's. So it should look like this:
When you override the view, you essentially control all of the HTML, so any styling, structure, layout desired would have to be applied using desired HTML and inline CSS to create that structure. That being said, I too see how when "hideSelection" is set to false, that it does force them onto individual rows. Let me see what I can test. I see the error Chris is pointing to and that might have some relation, but I'm not sure it's fully applicable here. His issue is around hiding the selection, BUT still being able to select all. Let me play around with some JSON to see if we can achieve what your looking for. :) |
Sure David. Thank you for testing out. I am also investigating this behavior and will update here. Thanks again! |
@PopWarner , Also, "hideListHeader" is valid only for List and this parameter has no affect on Library. For Library, i see we have verb "hideLibraryHeader" . I haven't information about this on MS documentation. :( Ravi |
@ravikadri, Yes, I would agree what your seeing on the hideSelection property being the default behavior. When you look at the tile option you are trying to emulate, I see the "selection checkmark" is inside the item itself, but when using the View Formatting option, the selection checkmark is outside the HTML generated by the list view. |
@PopWarner , @thechriskent , Thanks! |
@ravikadri you are correct that the tile view ( In reality, the tile trick causes some other issues (#108 & #113) and I don't think it is an intended scenario. However, it is a pretty awesome approach for a relatively small number of items in a view. I'd like to see both the scrolling and selection issues addressed since this trick is both possible and wanted by lots of users. I'm not sure I understand your comments about Although I agree that the selection breaking the tiles format is an unfortunate side effect and possible bug, this issues list is for issues with the samples themselves not with how List Formatting is implemented. So I will close this issue here. However, I encourage you to raise this issue (feel free to reference this one) on the official issues list here: https://aka.ms/spdev-issues |
Question
In list view formatting, is there any option to enable multi item select option(like the option in SharePoint OOB View). I am not seeing any reference which provide this option. Not sure if this feature is supported? Any hints would be a great help.
![image](https://user-images.githubusercontent.com/9435596/51359087-f4636e00-1a7a-11e9-904e-d2275b4e80a9.png)
Thanks!
Ravi
The text was updated successfully, but these errors were encountered: