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.

TransformData on Header Footer

See original GitHub issue

Why can’t I use TransformData on the header or footer? Like this:

search.addWidget(
            instantsearch.widgets.refinementList({
                container: '#container',
                attributeName: 'Attribute',
                sortBy: ['name:asc'],
                limit: 10,
                operator: 'and',
                transformData: function(data){
                    data.myValue = "some new value";
                },
                templates: {
                    header: "{{myValue}}"
                }
            })
        );

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Haroenvcommented, Oct 11, 2017

Thanks for closing this old issue @Giovanni-Mattucci ❤️

1reaction
vvocommented, Nov 4, 2016

Ok so then no that’s not feasible, what you can do is pass a function to the header template instead of a string, then return a string of text (not a mustache template).

Would that be ok for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Up Headers and Footers for Transform Reports - Syniti
The headers and footers that display on Transform reports can be customized in Console to include information that is generated when the report...
Read more >
Promote or demote column headers - Power Query
In Power Query, you can promote or demote headers in a table. This article demonstrates how to do these operations.
Read more >
Headers and footers on every page of the document.
Hello All, Is there an option to insert headers and footers on every page of a multi page output using proc report. Thanks,...
Read more >
Transform Data - Amazon SageMaker - AWS Documentation
Amazon SageMaker Data Wrangler provides numerous ML data transforms to streamline cleaning, transforming, and featurizing your data.
Read more >
Header and footer - Pentaho Community Forums
Kettle is a kind of hub-and-spoke tool... everything on input side is transformed to rows, other steps transform data and the output transforms...
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