Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare("rmlinput", {})
- rmlinput.window = rmlui.contexts[1]:LoadDocument("plugins/rmlinput/input.rml")
- local input = rmlinput.window:GetElementById("input")
- local clearbutton = rmlinput.window:GetElementById("clearbutton")
- local function clear_input(event)
- console_print("input", tostring(input), tostring(input.tag_name), tostring(input.attributes.value))
- input.attributes.value = ""
- console_print("input", tostring(input), tostring(input.tag_name), tostring(input.attributes.value))
- end
- clearbutton:AddEventListener("click", clear_input)
Advertisement
Add Comment
Please, Sign In to add comment