Skip to main content

Include

<gstock-include> | GstockInclude

API

Properties

Name Description Reflects Type Default
allowScripts
allow-scripts
Allows included scripts to be executed. Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks. boolean false
mode The fetch mode to use. 'cors' | 'no-cors' | 'same-origin' 'cors'
src The location of the HTML file to include. Be sure you trust the content you are including as it will be executed as code and can result in XSS attacks. string -
updateComplete

A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties .

Events

Name React Event Description Event Detail
gstock-load-event onGstockLoadEvent Emitted when the included file is loaded. -
gstock-error-event onGstockErrorEvent Emitted when the included file fails to load due to an error. { status: number }

Learn more about events .