mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update README
Button key trigger will not consume input Update scroll position while animate Add scroll:set_view_size Better static grid get_index function Rework Data List (only static grid) Update Default style Remove a component from parent if exists on druid:remove
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
---
|
||||
|
||||
local component = require("druid.component")
|
||||
local input = require("druid.extended.input")
|
||||
|
||||
local RichInput = component.create("druid.rich_input")
|
||||
|
||||
@@ -74,7 +75,7 @@ function RichInput.init(self, template, nodes)
|
||||
self.druid = self:get_druid()
|
||||
self.root = self:get_node(SCHEME.ROOT)
|
||||
|
||||
self.input = self.druid:new_input(self:get_node(SCHEME.BUTTON), self:get_node(SCHEME.INPUT))
|
||||
self.input = self.druid:new(input, self:get_node(SCHEME.BUTTON), self:get_node(SCHEME.INPUT))
|
||||
self.cursor = self:get_node(SCHEME.CURSOR)
|
||||
|
||||
self.input:set_text("")
|
||||
|
@@ -227,9 +227,10 @@ end
|
||||
|
||||
|
||||
--- Get all words, which has a passed tag.
|
||||
-- @tparam RichText self @{RichText}
|
||||
-- @tparam string tag
|
||||
-- @treturn druid.rich_text.word[] words
|
||||
function RichText:tagged(tag)
|
||||
function RichText.tagged(self, tag)
|
||||
if not self._words then
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user