question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow PureTemplate to have a configurable element type

See original GitHub issue

I’m working on a sortable data table widget and want to leverage the PureTemplate component: https://github.com/algolia/instantsearch.js/blob/develop/src/components/Template.js

Since this is rendering an actual html <table>, there are instances when I need render an element other than a div (eg tr, td).

Would be great if that were configurable.

@bobylito Any ideas welcome!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bobylitocommented, Oct 26, 2017

Hi @timkelty thanks for challenging the APIs we propose.

The connectors were created in order to provide this kind of flexibility. As I see things right now, providing a new API that is so specifically dedicated to templates will reinforce their usage. I think the balance of power of the template API, the simplicity of it and the impact on the code of the project is right. I will however sync back with the whole InstantSearch team to get their feelings too.

0reactions
francoischalifourcommented, Mar 15, 2019

FYI there’s now a rootTagName prop on the Template component that allows to render in another element than a div (see #2757).

Keep in mind that this Template component was originally made for internal usage. We wouldn’t recommend relying on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Form Element types | Help Center - PreciseFP
The different types of elements that can be added to a form template. ... You may configure the allowed items for the dropdown....
Read more >
Add configurable parameters to templates—Portal for ArcGIS
You can add configurable parameters to templates you've created that allow users to customize the appearance and behavior of your app.
Read more >
Chapter 3. Beans, BeanFactory and the ApplicationContext
When a bean property is a Java Class type, Spring allows you to specify the value for that property as a string value...
Read more >
Adding a data source configuration element - IBM
Select the data source configuration element. In the Properties view, select the Data tab.
Read more >
ConfigurationElement Class (System.Configuration)
Represents a configuration element within a configuration file. ... Constructor allowing name to be specified, will take the // default values for url...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found