SvgSetUpdateCallback: Difference between revisions
Jump to navigation
Jump to search
(Add svgSetUpdateCallback page) |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''svgElement:''' The [[svg]] you want to | *'''svgElement:''' The [[svg]] you want to set the callback function of. | ||
*'''callback:''' The callback function to store on the SVG. If '''false''' is provided, any existing callback function will be removed from the SVG. | *'''callback:''' The callback function to store on the SVG. If '''false''' is provided, any existing callback function will be removed from the SVG. | ||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
For example of callback usage, see [[svgSetSize]] or [[svgSetDocumentXML]]. | For example of callback usage, see [[svgSetSize]] or [[svgSetDocumentXML]]. | ||
==See Also== | ==See Also== | ||
{{SVG_functions}} | {{SVG_functions}} | ||
[[pt-br: | [[pt-br:SvgSetUpdateCallback]] |
Latest revision as of 17:32, 7 November 2024
Sets the update callback of an svg element
Syntax
bool svgSetUpdateCallback( svg svgElement, function / bool callback )
Required Arguments
- svgElement: The svg you want to set the callback function 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.