Revision Difference
DTextEntry:SetNumeric#550666
<function name="SetNumeric" parent="DTextEntry" type="panelfunc">
<ispanel>yes</ispanel>
<description>
Sets whether or not to decline non-numeric characters as input.
Numeric characters are 1234567890.-
</description>
<realm>Client</realm>⤶
<realm>Client and Menu</realm>⤶
<args>
<arg name="numericOnly" type="boolean">Whether to accept only numeric characters.</arg>
</args>
</function>
<example>
<code>
local TextEntry = vgui.Create( "DTextEntry" )
TextEntry:SetNumeric(true)
</code>
<output>Only allow numeric characters.</output>
</example>