Allow PureTemplate to have a configurable element type
See original GitHub issueI’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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
FYI there’s now a
rootTagName
prop on theTemplate
component that allows to render in another element than adiv
(see #2757).Keep in mind that this
Template
component was originally made for internal usage. We wouldn’t recommend relying on it.