SvgSetUpdateCallback

From Multi Theft Auto: Wiki
Revision as of 23:21, 8 April 2022 by LopSided (talk | contribs) (Add svgSetUpdateCallback page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the update callback of an svg element

Syntax

bool svgSetUpdateCallback( svg svgElement, function / bool callback )

Required Arguments

  • svgElement: The svg you want to get the size of.
  • callback: The callback function to store on the SVG. If false is provided, any existing callback function will be removed from the SVG.

Returns

  • Returns true if successful, false otherwise

Example

For example of callback usage, see svgSetSize or svgSetDocumentXML.

Requirements

This template will be deleted.

See Also