Revision Difference
DProperty_Generic#529104
<title>DProperty_Generic</title>⤶
<panel>
<parent>Panel</parent>
<description>A base for other controls for <page>DProperties</page>. Acts as a generic text input on its own.</description>
</panel>
<example>
<description>Example usage of this control</description>
<code>
local Panel = vgui.Create( "DFrame" )
Panel:SetSize( 500, 500 )
Panel:MakePopup()
local props = vgui.Create( "DProperties", Panel )
props:Dock( FILL )
local textRow = props:CreateRow( "MyCategory", "GenericTextArea" )
textRow:Setup( "Generic" )
textRow:SetValue( "test" )
textRow.DataChanged = function( self, data )
MsgN( "Text changed: ", data )
end
</code>
</example>