CustomScriptAttribute

Use

With CustomScriptAttribute you can add additional attributes to the HTML <script> tag. For example, to bind UI5 controls to the <script> tag, you can define id, data-sap-ui-theme, and data-sap-ui-libs attributes, in addition to the src attribute. Use aggregation CUSTOM_ATTRIBUTES to insert CustomScriptAttribute into an HTMLScript of an HTMLIsland or HTMLContainer.

Implementation Details

Runtime Class:

CL_WD_CUSTOM_SCRIPT_ATTRIBUTE

Properties in View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

name

STRING

Yes

value

STRING

Yes

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations are available as in the View Designer. But note that the spelling format and use of upper/lower case is different.

View Designer Name

Runtime Name

Type

name

NAME

STRING

value

VALUE

STRING