Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Linking to extension from dashboard widget

I have an extension for a rewards program that I am adding a dashboard widget entry point to so I can display points values.
All of that displays fine, but I also want to put a button on the dashboard widget that links to the full extension but having trouble getting it there.

I tried throwing a button on the widget and calling something like this in the jinja template hoping it would redirect, but it doesn't:

tecton.connected.then(function() {
document.querySelector('.btnGoToRewards').addEventListener('click', function() {
tecton.actions.navigateTo('MemberRewards');
});
});

The button of course looks like this:
<button class='btnGoToRewards'>Earn More</button>

Is there maybe a different way to do this I'm just overlooking?

Posted 4 years ago
Votes Newest

Answers


Hello, at a glance it looks like you are missing the entrypoint name. By default I believe this is "Main", so it would be something like tecton.actions.navigateTo('MemberRewards', 'Main') To see full documentation on this see the following:

https://docs.q2developer.com/guides/frontend_development/additional_entrypoints.html?highlight=navigateto

https://cdn1.onlineaccess1.com/cdn/base/tecton/v1.13.1/Documentation/index.html#/capabilities/navigateTo

Posted 4 years ago
Trey Teter
124 × 2 Administrator
154 Views
1 Answer
4 years ago
4 years ago
Tags