AnsweredAssumed Answered

Modify templateUrl in custom extension symbol?

Question asked by Asle Frantzen Champion on May 6, 2019
Latest reply on Jun 21, 2019 by Eugene Lee

Hi

 

I'm looking into extending the Mega Menu custom symbol that's been provided as an example of custom extended PI Vision symbols, so that it can support multiple sites in the same symbol. My initial idea was to support multiple sym-mega-menu-template.html files, and when users entered the symbol's settings they could change between the sites available.

 

The templateUrl parameter allows you to specify the file name/path for the template files, but I'm not sure if you're able to change this parameter in runtime. The other parameters I've been accessing from the ***-config.html file before have been defined in getDefaultConfig, but the templateUrl belongs directly under the symbol definition. Anyone have some input here? Is it possible to change during runtime, and what would be needed to do in order to refresh the symbol after having the whole ***-template.html changed?

 

 

 

I've started to think that it's probably easier to keep the different menu structures in div's in one file, and rather use CSS to show/hide the different menues.

Outcomes