3

Currently i'm implementing field customizer to update document library list item icon. I updated Field XML Schema definition through CSOM. It's working well.

But for certain condition, I need to show the original icon.

@override
public onRenderCell(event: IFieldCustomizerCellEventParameters): void {
    var a = "1";
    if(a == 1){
      // change innerHTML
    }
    else{
      super.onRenderCell(event);
      // its not working
    }
}

is it possible to refer to the base method ? how can we do that ?

Thanks for the help!

4
  • its DocIcon built in field
    – Eric
    Sep 28, 2017 at 11:23
  • can you be more clear ? are you modifying the DocIcon inner html based on certain condition ? what type of condition ? Sep 28, 2017 at 11:36
  • 1
    hi, on my case, i would like to change the DocIcon inner html if the document is checkout by specific user. Otherwise need to show the original icon as it is
    – Eric
    Sep 28, 2017 at 11:38
  • 1
    This issue on SP git: github.com/SharePoint/sp-dev-docs/issues/3759. It is not possible now, you have to do it manually. Please vote up for implementing this feature on sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/…
    – 23W
    Nov 8, 2019 at 11:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.