Panel.SetHTML
From GMod Wiki
| Function | |
| Syntax | Panel:SetHTML( String HTML code ) |
| Description: | |
| Instructs an HTML control to parse a string of HTML code directly. | |
| Returns: | nil |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SetHTML]Panel.SetHTML [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Creates a HTML panel. |
|---|---|
| Used on | |
| Code | local html = vgui.Create( "HTML", DPanel) html:SetHTML( "<p>Use your html here!</p>" ) html:SetSize( 390, 400 ) |
| Output | A HTML panel ready for use. |
Additional Notes
- This refreshes the element, even if the code is the same as set previously.