Skip to content

Commit

Permalink
allow altering label of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
entuland committed Jun 27, 2018
1 parent 747b427 commit 5c40529
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/smartfs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,12 @@ smartfs.element("field", {
self:getCloseOnEnterString()
end
end,
setLabel = function(self,text)
self.data.label = text
end,
getLabel = function(self)
return self.data.label
end,
setText = function(self,text)
self:setValue(text)
end,
Expand Down

0 comments on commit 5c40529

Please sign in to comment.