Revision Difference
Panel:OnCallback#545829
<function name="OnCallback" parent="DHTML" type="hook">⤶
<ishook>yes</ishook>⤶
<description>Called by the engine when a callback function is called.</description>⤶
<realm>Client</realm>⤶
<file line="107-L121">lua/vgui/dhtml.lua</file>⤶
<args>⤶
<arg name="library" type="string">Library name of the JS function you are defining.</arg>⤶
<arg name="name" type="string">Name of the JS function you are defining.</arg>⤶
<arg name="callback" type="function">Function called when the JS function is called. Arguments passed to the JS function will be passed here.</arg>⤶
</args>⤶
<rets>⤶
<ret name="" type="boolean">Return `true` to suppress default engine action.</ret>⤶
</rets>⤶
</function>