ユニット core.resource
このスクリプトユニットは、スキーマ タイプ ods:resource と互換性のあるリソース参照を生成するメソッドです。
例
uses core.resource as resource;
export function getValue(): typeof record.functions.ResourceValue
begin
return resource.toImage('ebx-test','on_anim_wait.gif');
end
| メソッド |
|---|
| function toHtml(moduleName: string, filePath: string): string 画像リソースへの参照を返します。 |
| function toIcon(moduleName: string, filePath: string): string アイコンリソースへの参照を返します。 |
| function toImage(moduleName: string, filePath: string): string 画像リソースへの参照を返します。 |
| function toJavaScript(moduleName: string, filePath: string): string JavaScript ファイルリソースへの参照を返します。 |
| function toStyleSheet(moduleName: string, filePath: string): string スタイルシートファイルリソースへの参照を返します。 |
toHtml
function toHtml(moduleName: string, filePath: string): string
画像リソースへの参照を返します。
パラメーター
moduleName: モジュール名。
filePath: リソースのローカルファイルパス。
戻り値
スキーマタイプ ods:resource と互換性のあるリソース文字列。
使用可能な場所:
toIcon
function toIcon(moduleName: string, filePath: string): string
アイコンリソースへの参照を返します。
パラメーター
moduleName: モジュール名。
filePath: リソースのローカルファイルパス。
戻り値
スキーマタイプ ods:resource と互換性のあるリソース文字列。
使用可能な場所:
toImage
function toImage(moduleName: string, filePath: string): string
画像リソースへの参照を返します。
パラメーター
moduleName: モジュール名。
filePath: リソースのローカルファイルパス。
戻り値
スキーマタイプ ods:resource と互換性のあるリソース文字列。
使用可能な場所:
toJavaScript
function toJavaScript(moduleName: string, filePath: string): string
JavaScript ファイルリソースへの参照を返します。
パラメーター
moduleName: モジュール名。
filePath: リソースのローカルファイルパス。
戻り値
スキーマタイプ ods:resource と互換性のあるリソース文字列。
使用可能な場所:
toStyleSheet
function toStyleSheet(moduleName: string, filePath: string): string
スタイルシートファイルリソースへの参照を返します。
パラメーター
moduleName: モジュール名。
filePath: リソースのローカルファイルパス。
戻り値
スキーマタイプ ods:resource と互換性のあるリソース文字列。
使用可能な場所: