Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ Constructs a new [ResourceLoader](resourceloader.md) object for the specified [R

### -param fileName

The resource identifier of the [ResourceMap](resourcemap.md) that the new resource loader uses for unqualified resource references. It can then retrieve resources relative to those references.

> [!NOTE]
> The resource identifier is treated as a Uniform Resource Identifier (URI) fragment, subject to Uniform Resource Identifier (URI) semantics. For example, "Caption%20" is treated as "Caption ". Do not use "?" or "#" in resource identifiers, as they terminate the resource path. For example, "Foo?3" is treated as "Foo".
The path and name of the file that should be used for the current context.

## -remarks

This constructor is typically used to access resources relative to a resource file with the specified resource identifier. For example, `new ResourceLoader('Errors');` is relative to errors.resjson or errors.resw.
This constructor is typically used to load resources from a specific PRI file. For example, `new ResourceLoader("MyResources.pri")` loads from the specified file relative to the app's working directory.

## -examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ Constructs a new [ResourceLoader](resourceloader.md) object for the specified [R

### -param fileName

The resource identifier of the [ResourceMap](resourcemap.md) that the new resource loader uses for unqualified resource references. It can then retrieve resources relative to those references.

> [!NOTE]
> The resource identifier is treated as a Uniform Resource Identifier (URI) fragment, subject to Uniform Resource Identifier (URI) semantics. For example, "Caption%20" is treated as "Caption ". Do not use "?" or "#" in resource identifiers, as they terminate the resource path. For example, "Foo?3" is treated as "Foo".
The path and name of the file that should be used for the current context.

## -remarks

This constructor is typically used to access resources relative to a resource file with the specified resource identifier. For example, `new ResourceLoader('Errors');` is relative to errors.resjson or errors.resw.
This constructor is typically used to load resources from a specific PRI file. For example, `new ResourceLoader("MyResources.pri")` loads from the specified file relative to the app's working directory.

## -see-also

Expand Down