Builder
Defines the notion of an external script document, written in JavaScript, which should be included
via reference rather than inline.
Content copied to clipboard
elide.page.Context.Scripts.JavaScript
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether to add the `async` flag to a script.
Content copied to clipboard
bool async = 4;
Link copied to clipboard
Whether to add the `defer` flag to a script.
Content copied to clipboard
bool defer = 3;
Link copied to clipboard
Link copied to clipboard
ID at which to attach the script tag in the DOM.
Content copied to clipboard
string id = 2;
Link copied to clipboard
Whether to add the `module` flag to a script.
Content copied to clipboard
bool module = 5;
Link copied to clipboard
Whether to add the `nomodule` flag to a script.
Content copied to clipboard
bool no_module = 6;
Link copied to clipboard
Link copied to clipboard
Whether to pre-fetch this asset, as applicable.
Content copied to clipboard
bool prefetch = 7;
Link copied to clipboard
Whether to pre-load this asset, as applicable.
Content copied to clipboard
bool preload = 8;
Link copied to clipboard
Whether to proactively push this asset, as applicable.
Content copied to clipboard
bool push = 9;
Link copied to clipboard
URI to a given script asset.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
ID at which to attach the script tag in the DOM.
Content copied to clipboard
string id = 2;
Link copied to clipboard
Link copied to clipboard
Whether to add the `nomodule` flag to a script.
Content copied to clipboard
bool no_module = 6;
Link copied to clipboard
Link copied to clipboard
Whether to pre-fetch this asset, as applicable.
Content copied to clipboard
bool prefetch = 7;
Link copied to clipboard
Whether to pre-load this asset, as applicable.
Content copied to clipboard
bool preload = 8;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
URI to a given script asset.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
URI to a given script asset.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun mergeFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): Context.Scripts.JavaScript.Builder
Link copied to clipboard
Link copied to clipboard
URI to a given script asset.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
Link copied to clipboard
Whether to add the `async` flag to a script.
Content copied to clipboard
bool async = 4;
Link copied to clipboard
Whether to add the `defer` flag to a script.
Content copied to clipboard
bool defer = 3;
Link copied to clipboard
ID at which to attach the script tag in the DOM.
Content copied to clipboard
string id = 2;
Link copied to clipboard
ID at which to attach the script tag in the DOM.
Content copied to clipboard
string id = 2;
Link copied to clipboard
Whether to add the `module` flag to a script.
Content copied to clipboard
bool module = 5;
Link copied to clipboard
Whether to add the `nomodule` flag to a script.
Content copied to clipboard
bool no_module = 6;
Link copied to clipboard
Whether to pre-fetch this asset, as applicable.
Content copied to clipboard
bool prefetch = 7;
Link copied to clipboard
Whether to pre-load this asset, as applicable.
Content copied to clipboard
bool preload = 8;
Link copied to clipboard
Whether to proactively push this asset, as applicable.
Content copied to clipboard
bool push = 9;
Link copied to clipboard
abstract fun setRepeatedField(field: Descriptors.FieldDescriptor, index: Int, value: Any): Message.Builder
Link copied to clipboard
Link copied to clipboard
open fun setUri(builderForValue: TrustedResourceUrlProto.Builder): Context.Scripts.JavaScript.Builder
URI to a given script asset.
Content copied to clipboard
.webutil.html.types.TrustedResourceUrlProto uri = 1;