I was working with JS Link in Sharepoint and managed to render a custom list. Here's a brief extract from the code:
context.Templates.View = RenderBodyTemplate; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(context);
RenderBodyTemplate is a function, which will take context as its parameter and returns HTML markup as a string. Then,
RegisterTemplateOverrides accomplishes the rendering.
So, the rendering worked fine, but then I needed a search box and search functionality for the custom list. I noticed there was a checkbox, which would display the search box for my custom list in its Properties window.
After setting the search box (this one)