Garry's Mod Wiki

Revision Difference

Panel:SetHTML#524821

<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( "&lt;p&gt;Put HTML code here&lt;/p&gt;" ) HTML:SetHTML( "<p>Put HTML code here</p>" ) HTML:SetSize( 390, 400 ) </code> </example>