Garry's Mod Wiki

Revision Difference

Panel:SetHTML#511030

<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:SetSize( 390, 400 )⤶ </code>⤶ ⤶ </example>