[]
Ƭ AnimationSettings: Partial<{ charts: Partial<{ highlight: { enabled: boolean } ; onHover: { enabled: boolean } ; onLoad: { enabled: boolean } }> ; table: { onHover: { backgroundColor: string ; enabled: boolean ; textColor?: string } | { enabled: boolean ; textColor: string } } }>
Represents animation settings for visual components.
example
const settings: AnimationSettings = {
charts: { onLoad: { enabled: true } },
table: { onHover: { enabled: true, backgroundColor: '#f5f5f5' } },
};
Ƭ Environment: Object
Represents the report environment used for expression evaluation.
example
const env: Environment = { ReportName: 'SalesReport' };
| Name | Type | Description |
|---|---|---|
EvaluationOptions? |
{ showEvaluationErrors?: boolean ; showExpressionWarnings?: boolean } |
Gets or sets the evaluation options |
EvaluationOptions.showEvaluationErrors? |
boolean |
Gets or sets the evaluation error rendering |
EvaluationOptions.showExpressionWarnings? |
boolean |
Gets or sets the evaluation warning notifications rendering |
ReportFolder? |
string |
Gets or sets the report folder name. |
ReportName? |
string |
Gets or sets the report name. |
logsSubscriber? |
RenderLogs |
- |
Ƭ EventHandler<TArgs>: (args: TArgs) => void
| Name | Description |
|---|---|
TArgs |
The event arguments type. |
▸ (args): void
Represents an event handler callback.
example
const handler: EventHandler<{ id: string }> = (args) => console.log(args.id);
| Name | Type |
|---|---|
args |
TArgs |
void
Ƭ NoValueType: typeof noValue
Defines special value to indicate that value is not set.
Ƭ Parameter: Object
Represents a report parameter with values and validation state.
example
const parameter: Parameter = {
descriptor: {} as ParameterDescriptorEx,
validValues: [],
isValidValuesLoaded: false,
values: [],
errorMessage: null,
};
| Name | Type | Description |
|---|---|---|
descriptor |
ParameterDescriptorEx |
Gets or sets the parameter descriptor. |
errorMessage |
string | null |
Gets or sets the error message for invalid parameter values. |
isValidValuesLoaded |
boolean |
Gets or sets a value indicating whether valid values are loaded. |
validValues |
ParameterValue[] |
Gets or sets the list of valid values. |
values |
ParameterVariant[] |
Gets or sets the current parameter values. |
Ƭ ParameterDataType: "Boolean" | "String" | "Integer" | "Float" | "Date" | "DateTime"
Defines parameter data type.
Ƭ ParameterDescriptor: Object
Represents a report parameter descriptor.
example
const descriptor: ParameterDescriptor = {
name: 'Year',
dataType: 'String',
allowBlank: false,
nullable: false,
multiValue: false,
enableEmptyArray: false,
dependsOn: [],
displayFormat: '',
};
| Name | Type | Description |
|---|---|---|
allowBlank |
boolean |
Gets or sets a value indicating whether blank values are allowed. |
dataType |
ParameterDataType |
Gets or sets the parameter data type. |
dependsOn |
string[] |
Gets or sets the names of parameters this parameter depends on. |
displayFormat |
string |
Gets or sets the format string used to display values. |
enableEmptyArray |
boolean |
Gets or sets a value indicating whether an empty array is allowed for multi-value parameters. |
multiValue |
boolean |
Gets or sets a value indicating whether the parameter is multi-value. |
name |
string |
Gets or sets the parameter name. |
nullable |
boolean |
Gets or sets a value indicating whether null values are allowed. |
selectAllValue? |
any |
Gets or sets the special value that represents "select all" for multi-value parameters. |
Ƭ ParameterDescriptorConfig: Object
Represents the UI configuration for a report parameter.
example
const config: ParameterDescriptorConfig = {
hidden: false,
prompt: 'Year',
multiline: false,
};
| Name | Type | Description |
|---|---|---|
hidden |
boolean |
Gets or sets a value indicating whether the parameter is hidden in the parameters panel. |
multiline |
boolean |
Gets or sets a value indicating whether the prompt supports multiple lines. |
prompt |
string |
Gets or sets the parameter prompt text. |
Ƭ ParameterDescriptorEx: ParameterDescriptor & ParameterDescriptorConfig
Represents a report parameter descriptor with UI configuration.
example
const descriptor: ParameterDescriptorEx = {
name: 'Year',
dataType: 'String',
allowBlank: false,
nullable: false,
multiValue: false,
enableEmptyArray: false,
dependsOn: [],
displayFormat: '',
hidden: false,
prompt: 'Year',
multiline: false,
};
Ƭ ParameterValue: Object
Defines parameter value
| Name | Type | Description |
|---|---|---|
fields? |
any[] |
Additional fields for extended parameter view |
label |
string |
Label to display |
value |
ParameterVariant |
Value |
Ƭ ParameterVariant: string | number | boolean | Date | null | NoValueType | SelectAllType
Type of parameter value
Ƭ RenderOptions: Object
Represents the document rendering options.
example
const options: RenderOptions = {
galleyMode: false,
interactivityActions: [],
};
| Name | Type | Description |
|---|---|---|
forceCellbased? |
boolean |
Gets or sets a value indicating whether to force cell-based layout. |
galleyMode |
boolean |
Gets or sets a value indicating whether to render the document in galley mode. |
interactivityActions |
({ Data: string ; Type: "toggle" } | { Data: string ; Type: "sort" })[] |
Gets or sets the interactivity actions applied during rendering. remarks Accepted values: - { Type: 'toggle', Data: string }: Applies a toggle action. - { Type: 'sort', Data: string }: Applies a sort action. |
Ƭ RenderingTreeBarcode: RenderingTreeItemBase & { delayedContent?: DelayedContent$1<RenderingTreeBarcode> ; model: { barcodeModel: any ; common: ResolvedItem ; i18n: WithT ; itemViewSize: ItemViewSize ; layer?: string } ; type: "barcode" }
Ƭ ReportParameters: Object
Represents the report parameters API.
example
const api = {} as ReportParameters;
api.getDescriptors();
| Name | Type |
|---|---|
applySteps |
(steps: ApplyParameterStep[]) => Promise<void> |
getDescriptors |
() => { [name: string]: ParameterDescriptorEx; } |
getValues |
() => { [name: string]: ParameterState; } |
getValuesFor |
(knownValues: { [name: string]: ParameterVariant | ParameterVariant[]; }, requiredParameters: { [name: string]: { fields: string[] } | null; }) => Promise<GetValuesResult> |
Ƭ ResourceLocator: Object
Represents the contract for resolving external resources by URI.
remarks
Implement this type to control how reports resolve external resources such as images, themes, and subreports.
| Name | Type |
|---|---|
fork |
(reportName: string) => ResourceLocator |
getResource |
<T>(uri: string) => Promise<null | T> |
getResourceUri |
(resourceID: string) => string |
Ƭ SelectAllType: Object
Defines special value for multivalue parameter to indicate that all values are set.
Ƭ UnregisterHandler: () => void
▸ (): void
Represents a callback that unregisters an event handler.
example
const unregister: UnregisterHandler = () => {};
void
• CultureInfo: Object
Provides data for language and culture-specific text formatting.
example
CultureInfo.registerCulture('en-US', {});
| Name | Type |
|---|---|
registerCulture |
(identifier: string, data: any) => void |
• CustomCode: Object
Represents the API for registering user-defined functions.
| Name | Type |
|---|---|
getFunctions |
() => UserDefinedFunction[] |
registerFunctions |
(functions: UserDefinedFunction[]) => void |
• FontStore: Object
Represents the font registration API for CSS and PDF export.
| Name | Type | Description |
|---|---|---|
registerFonts |
(...fonts: FontDescriptor[]) => Promise<void> & (configUri: string) => Promise<void> |
Registers fonts in CSS and PDF export. remarks Use the fonts overload to register descriptors directly, or the configUri overload to register from a configuration file. param The font descriptors to register. param The path to a fontsConfig.json file. returns A promise that resolves when the fonts are loaded. example ts const arial: FontDescriptor = { name: 'Arial', source: 'fonts/arial.ttf', style: 'italic', weight: '700', }; const gothic: FontDescriptor = { name: 'MS PGothic', source: 'fonts/MS-PGothic.ttf', }; await FontStore.registerFonts(arial, gothic); example ts await FontStore.registerFonts('./fontsConfig.json'); |
getFonts |
() => FontDescriptor[] |
Gets the registered font descriptors. example ts const fonts = FontStore.getFonts(); |
• noValue: undefined
Special value to indicate that value is not set.
• selectAll: SelectAllType
Special value for multivalue parameter to indicate that all values are set.
▸ Const renderBridge(item): null | VNode
| Name | Type |
|---|---|
item |
RenderingTreeBarcode | RenderingTreeChart |
null | VNode
▸ setLicenseKey(key): void
Sets the ActiveReportsJS license key.
example
setLicenseKey('YOUR-LICENSE-KEY');
| Name | Type | Description |
|---|---|---|
key |
string |
The license key value. |
void