Skip to content

Commit b00e7c6

Browse files
author
mutlusun
committed
get custom data from a widget
1 parent f2aa096 commit b00e7c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ function vicious.activate(widget)
260260
end
261261
-- }}}
262262

263+
-- {{{ Get custom widget format data
264+
function vicious.getdata(myw, format, warg)
265+
return helpers.format(format, myw(format, warg))
266+
end
267+
-- }}}
268+
269+
263270
return vicious
264271

265272
-- }}}

0 commit comments

Comments
 (0)