doc(w.c.radialprogressbar): Show example code
Adds the code snippet for the example shown in the module description. Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
This commit is contained in:
parent
c689af64d5
commit
0a68341c12
|
@ -1,6 +1,6 @@
|
||||||
--DOC_HIDE_ALL
|
--DOC_HIDE_START
|
||||||
--DOC_GEN_IMAGE
|
--DOC_GEN_IMAGE
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
text = "Before",
|
text = "Before",
|
||||||
|
@ -9,6 +9,7 @@ return {
|
||||||
widget = wibox.widget.textbox,
|
widget = wibox.widget.textbox,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
--DOC_HIDE_END
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
text = "After",
|
text = "After",
|
||||||
|
@ -16,13 +17,14 @@ return {
|
||||||
valign = "center",
|
valign = "center",
|
||||||
widget = wibox.widget.textbox,
|
widget = wibox.widget.textbox,
|
||||||
},
|
},
|
||||||
value = 0.5,
|
value = 0.5,
|
||||||
max_value = 1,
|
max_value = 1,
|
||||||
min_value = 0,
|
min_value = 0,
|
||||||
widget = wibox.container.radialprogressbar
|
widget = wibox.container.radialprogressbar
|
||||||
},
|
},
|
||||||
|
--DOC_HIDE_START
|
||||||
margins = 5,
|
margins = 5,
|
||||||
layout = wibox.container.margin
|
layout = wibox.container.margin
|
||||||
}
|
}
|
||||||
|
|
||||||
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue