Function for panel_section
This commit is contained in:
parent
ba3ad612dc
commit
7138d9914f
@ -1,5 +1,5 @@
|
||||
import "nbcl/components/datetime_widg.nbcl" as datetime_widg { * }
|
||||
import "nbcl/panel/panel_section.nbcl" as datetime_widg { * }
|
||||
import "nbcl/panel/panel_section.nbcl" as panel_section { * }
|
||||
|
||||
component EwwiiPanel () {
|
||||
Box {
|
||||
@ -10,17 +10,8 @@ component EwwiiPanel () {
|
||||
width = config.panel_width
|
||||
space_evenly = true
|
||||
|
||||
PanelSection "section_left" {
|
||||
section_side = "left"
|
||||
widg_align = "start"
|
||||
}
|
||||
PanelSection "section_left" {
|
||||
section_side = "center"
|
||||
widg_align = "center"
|
||||
}
|
||||
PanelSection "section_left" {
|
||||
section_side = "right"
|
||||
widg_align = "end"
|
||||
}
|
||||
panel_section.panel_section("left", "start")
|
||||
panel_section.panel_section("center", "center")
|
||||
panel_section.panel_section("right", "end")
|
||||
}
|
||||
}
|
||||
@ -1,4 +1,5 @@
|
||||
# 3 Sections of the panel
|
||||
|
||||
component PanelSection (section_side, widg_align) {
|
||||
Box {
|
||||
orinetation = "horizontal"
|
||||
@ -17,3 +18,10 @@ component PanelSection (section_side, widg_align) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn panel_section(section_side, widg_align) {
|
||||
PanelSection "section_${section_side}" {
|
||||
section_side = section_side
|
||||
widg_align = widg_align
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user