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

Is there a way for customRowAction to perform a default item "selection" for it to work with a list property webpart? #162

Closed
JPStoffell opened this issue Jun 24, 2019 · 1 comment

Comments

@JPStoffell
Copy link

Trying to get a tiled view to treat a click as a item selection to work with a linked List properties webpart, is there a customRowAction action that will do this or should I be looking elsewhere?

My current JSON just opens the list item up on a separate page, where i want it to show the item in a webpart in a page using List properties.

My JSON..
{ "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "hideSelection": "true", "hideColumnHeader": "true", "rowFormatter": { "elmType": "div", "style": { "float": "left" }, "children": [ { "elmType": "button", "customRowAction": { "action": "defaultClick" }, "attributes": { "class": "ms-bgColor-themeLighterAlt ms-bgColor-themePrimary--hover ms-fontColor-white--hover" }, "style": { "display": "flex", "flex-wrap": "wrap", "min-width": "150px", "min-height": "50px", "margin-right": "10px", "margin-top": "10px", "box-shadow": "2px 2px 4px darkgrey" }, "children": [ { "elmType": "div", "style": { "text-align": "center", "margin": "auto" }, "children": [ { "elmType": "div", "attributes": { "class": "sp-row-title " }, "txtContent": "[$Phase]" } ] } ] } ] } }

@hugoabernier
Copy link
Contributor

@JPStoffell this issue list in intended for samples in this repository. I'll go ahead and close this issue.

If you need help with list formatting, please don't hesitate to open an issue with https://github.com/SharePoint/sp-dev-docs

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

No branches or pull requests

2 participants