type method

type

Sets the ’type’ attribute of the SVG ‘script’ element, specifying the scripting language type (e.g., “text/javascript”).

Returns

The current instance of SVGScriptElementBuilder for method chaining.

def type(self, value):
    ...
ParameterTypeDescription
valuestrThe MIME type of the script.

See Also