jinjat_project.yml
Jinjat uses dbt under the hood which requires dbt_project.yml
file. This file is also used by Jinjat for the project version and name. jinjat_project.yml
is different than this file and it's optional.
jinjat_project.yml
includes metadata about your dbt project that is relevant to Jinjat. While it's optional, it's recommended. Here are the list of configurations available:
CORS
Enables CORS to perform calls from different websites.
Query
By default, Jinjat passes your queries to limit_query
macro before executing them in your database. You can override the default settings using the query
parameter.
Import Map
You can import packages from NPM or local environment via node_modules to the Refine app generated by Jinjat using Import Map feature. The packages can be used for rendering custom elements or including your custom Javascript plugins for analytics, etc. The feature is backed by Import Maps natively available in modern browser, you can read more about the URLs that you can pass here.
JsonForms
Jinjat's Refine integration uses JsonForms to render layout from your JSON Schema definitions. Once you imported your package with Import Map, you can use renderer
property to define your custom components such as rating
defined above. The imported component needs to be a React component that has value
for emitting the current value and setValue
callback to set the values for the component.