Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Custom Visuals: Building a Custom Template

I'm looking at building a template for custom visuals, my plan is to build a generator using Yeoman that will run the pbiviz new CLI command and then update the output and add any files I want as part of my template.

 

I can see that the CLI already has a templating option, is there anyway I can utilise this to build a custom template?

 

Or does anyone know of something similar being done for Power BI Custom Visuals? I've searched and searched but can't find anyone trying to do this specific task.

 

Many thanks

  • Hi Anonymous,

    You can fork the powerbi-visuals-tools repository and add your own template to the list, and even request for it to be pulled into the main repo, if you feel it's going to help other developers.

    For a while, I've worked with the idea of setting up a template repository on GitHub and I used this for a number of visual projects. You can create a new repo from this template repository and this is quite a neat shortcut. I haven't updated it in a while, as I've been working on a new architecture pattern for my own visuals, which I haven't quite perfected yet (at which point I most likely will do), but here's my repository if you want to take a look.

    Good luck!

    Daniel

1 Reply

  • dm-p's avatar
    dm-p
    Super User

    Hi Anonymous,

    You can fork the powerbi-visuals-tools repository and add your own template to the list, and even request for it to be pulled into the main repo, if you feel it's going to help other developers.

    For a while, I've worked with the idea of setting up a template repository on GitHub and I used this for a number of visual projects. You can create a new repo from this template repository and this is quite a neat shortcut. I haven't updated it in a while, as I've been working on a new architecture pattern for my own visuals, which I haven't quite perfected yet (at which point I most likely will do), but here's my repository if you want to take a look.

    Good luck!

    Daniel