CreateTemplateVariableDto
Properties
| Name | Type |
|---|---|
label | string |
name | string |
namedColumns | boolean |
columnNames | Array<string> |
columnDataTypes | Array<string> |
type | string |
dataType | string |
dataOptions | TemplateVariableDataOptions |
currentValue | number |
formatString | string |
optional | boolean |
Example
import type { CreateTemplateVariableDto } from '@pdf-generator/client'
// TODO: Update the object below with actual values
const example = {
"label": Customer Name,
"name": customerName,
"namedColumns": null,
"columnNames": ["Name","Quantity","Price"],
"columnDataTypes": ["string","number","number"],
"type": plain,
"dataType": string,
"dataOptions": null,
"currentValue": 1,
"formatString": INV-{000},
"optional": null,
} satisfies CreateTemplateVariableDto
console.log(example)
// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)
// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as CreateTemplateVariableDto
console.log(exampleParsed)
[Back to top] [Back to API list] [Back to Model list] [Back to README]