webmcp

view framework/env/ui_deprecated/input_field/textarea.lua @ 75:faedbc8615e0

Allow particular records to be selected and/or disabled in ui.field.select{...}, even if they share the same key, and never select more than one record
author jbe
date Wed Jun 20 00:35:02 2012 +0200 (2012-06-20)
parents 9fdfb27f8e67
children
line source
1 function ui_deprecated.input_field.textarea(args)
2 local value = args.value or ''
3 local name = assert(args.name, 'No field name given')
4 local style = ''
5 if args.height then
6 style = 'style="height:' .. args.height .. '"'
7 end
8 return '<textarea name="' .. name .. '" ' .. style .. '>' .. encode.html(convert.to_human(value, "string")) .. '</textarea>'
9 end

Impressum / About Us