Jig Templates
8 min
jigx provides a template gallery that you can use as a base when creating solutions jigx templates are available when creating jigs, adding components and widgets to a jig using templates has many benefits, such as time efficiency templates provide a pre designed structure and layout they can save you time by eliminating the need to start from scratch or design every aspect from the ground up with templates, you can jumpstart your development process and focus more on customizing the specific functionality you require consistency and best practices templates ensure consistency in your project using templates helps maintain a uniform structure, coding style, and user experience throughout your application reduced development effort templates include pre built features and components that are commonly required when building jigx apps by leveraging these pre existing elements, you can reduce the effort needed to implement standard features, allowing you to allocate more time and resources to develop unique and critical features that differentiate your app while templates offer numerous benefits, it's important to remember that they may not always meet your requirements customization is still necessary, and templates should be used as a starting point rather than a complete solution jig template using jig templates jig templates either use static data https //docs jigx com/examples/static or dynamic data docid\ ghdcdrnekxytnuvin5whf you can easily customize the template to use other data docid\ zjbvpf4gxbcdqsesfwlt instead each jig type has a set of templates to choose from follow the steps below to select a template in explorer in the jigs folder, right click and create a new jig file with the jigx extension the jigx intellisense popup displays listing the available jig types and the use template option use ctrl+space to open the jig intellisense popup jig template option click use template the templates gallery opens providing the templates for all jig types use the search and category fields to find the template you want or browse the gallery by scrolling through the options once you have chosen a template, hover over the template, there are two options 1\ insert template insert jig click the blue insert button the selected template yaml will be inserted into your jig file check the yaml code for comments that specify additional steps you must take on the template, such as #create new table invoices in databases/default jigx here you will manually need to add the table to the default jigx file under the database folder add your jigid to the index jigx file publish your project and view the jig in the app now you can customize the jig by changing the static data to dynamic data or adding additional components using the component templates described below 2\ configure template configure jig click the blue insert button the selected template yaml will be inserted into your jig file check the yaml code for comments that specify additional steps you must take on the template, such as #create new table invoices in databases/default jigx here, you will manually need to add the table to the default jigx file under the database folder the jigid are automatically added to the index jigx file publish your solution and view the widget and jig in the app now you can customize the jig by changing the static data to dynamic data or adding additional components using the component templates described below scenario templates you can use the scenario templates to create a functioning solution for example insert the content management scenario template and publish out the solution to the app the scenario includes four jigs and adds the contacts dynamic data table see also component templates docid\ e2imo fhtsrgfooeymohe