One side-effect of rendering a "custom" field is that the global search is no longer able to work in it. I believe this happens because the cell starts out as a json Object and then I render just one string in that object. As a consequence, the global search is unable to reach into it. I'm basically looping through a list of objects and then displaying a single property (string) from that object to display in that cell. Unfortunately, all of that text is invisible to the global search. Is there a way I can add custom rendered text to the global search? I've included the code for the rendered component:
@Component({
selector: 'scope-renderer',
template: `
<ul class="list-unstyled">
<li *ngFor="let scope of scopes">
{{ scope.displayName }}
</li>
</ul>
`
})
export class ScopeRendererComponent implements OnInit {
@Input() rowData: any;
scopes: Array<Scope>;
ngOnInit() {
this.scopes = this.rowData.scopes;
}
}
class Scope {
name: string;
displayName: string;
description: string;
required: boolean;
emphasize: boolean;
showInDiscoveryDocument: boolean;
}