blob: 9039e24ea97c55789b8f70c7478e98882f9d4e0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local comp = require 'mmm.component'
local div, input, br = comp.elements.div, comp.elements.input, comp.elements.br
local text = comp.ReactiveVar "your text here"
return div{
input{
value = text:get(),
oninput = function (_, e)
text:set(e.target.value)
end,
},
br(),
input{
disabled = true,
value = text,
},
}
|