Garry's Mod Wiki

Revision Difference

Panel:SetHTML#517747

<function name="SetHTML" parent="Panel" type="classfunc"> <description>Allows you to set HTML code within a panel.</description> <realm>Client</realm> <args> <arg name="HTML code" type="string">The code to set.</arg> </args> </function> <example> <code> local HTML = vgui.Create( "HTML", DPanel ) HTML:SetHTML( "&amp;lt;p&amp;gt;Put HTML code here&amp;lt;/p&amp;gt;" ) HTML:SetHTML( "&lt;p&gt;Put HTML code here&lt;/p&gt;" ) HTML:SetSize( 390, 400 ) </code> </example>