pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.77k stars 847 forks source link

bar-option not working for me in list. #582

Closed navpreetkaur91 closed 2 years ago

navpreetkaur91 commented 2 years ago

Hi @thechriskent , I am trying this https://github.com/pnp/list-formatting/tree/master/view-samples/bar-option-picker on one my list and its not working for me. Is there some more changes as my column is single line and just following the json .

aaclage commented 2 years ago

Hi @navpreetkaur91 Did you add in a View or a column the formatting.

This was included in a View, ensure the internal name os columns are "Value" and defined as number.

navpreetkaur91 commented 2 years ago

Hi @aaclage ,

Thank you so much.

So I am adding it to column formatting not view . So its fine now, But I need to show this kind of progress bar in the column.

aaclage commented 2 years ago

Hi @navpreetkaur91

Please replace [$Value] with @currentField and remove the references for View such us: "hideSelection": true, "hideColumnHeader": true, "rowFormatter":"

and then include existing code.

navpreetkaur91 commented 2 years ago

@aaclage Thank you so much

navpreetkaur91 commented 2 years ago

@aaclage ,

There is one more issue I am not able to scroll the bar and the value is not updating , but when its edit in grid view it updates.

aaclage commented 2 years ago

Hi @navpreetkaur91

Sometimes just need a hard refresh the page.

navpreetkaur91 commented 2 years ago

Hi @aaclage ,

Thank you its working now in the column as per my requirement.