Garry's Mod Wiki

Revision Difference

Panel:SetHTML#550889

<function name="SetHTML" parent="Panel" type="classfunc"> <description>Allows you to set HTML code within a panel.</description> <realm>Client</realm>⤶ <realm>Client and Menu</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( "<p>Put HTML code here</p>" ) HTML:SetSize( 390, 400 ) </code> </example>