Revision Difference
DTextEntry:SetHistoryEnabled#550664
<title>DTextEntry:SetHistoryEnabled</title>
<function name="SetHistoryEnabled" parent="DTextEntry" type="panelfunc">
<ispanel>yes</ispanel>
<description>Enables or disables the history functionality of <page>DTextEntry</page>.</description>
<realm>Client</realm>⤶
<realm>Client and Menu</realm>⤶
<args>
<arg name="enable" type="boolean">Whether to enable history or not.</arg>
</args>
</function>
<example>
<description>A common example.</description>
<code>
local textentry = vgui.Create("DTextEntry")
textentry:SetHistoryEnabled(true)
textentry.History = {
"Message 1",
"Message 2"
}
</code>
</example>