0.1.5 • Published 9 months ago

@phase2/outline-include v0.1.5

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

outline-include

Properties

PropertyAttributeTypeDefaultDescription
allowScriptsallow-scriptsbooleanfalseAllows included scripts to be executed. You must ensure the content you're including is trusted, otherwise thisoption can lead to XSS vulnerabilities in your app!
modemode"cors" \| "no-cors" \| "same-origin""cors"The fetch mode to use.
srcsrcstringThe location of the HTML file to include.WARNING: Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks.

Methods

MethodType
executeScript(script: HTMLScriptElement): void
handleSrcChange(): Promise<void>

Events

EventTypeDescription
outline-error{ status: number }Emitted when the included file fails to load due to an error.
outline-loadEmitted when the included file is loaded.