The b.Level constructor creates a level.
| Child | Action |
|---|---|
b.LevelLeft(...any) | Apply children to the <div class="level-left"> element |
b.LevelRight(...any) | Apply children to the <div class="level-right"> element |
e.Element | Add the level-item class to the element and apply the element to the <nav class="level"> element |
string | Wrap text into an <p> element with class level-item and apply it to the <nav class="level"> element |
gomponents.Nodeof type gomponents.AttributeType | Apply attribute to the <nav class="level"> element |
gomponents.Nodeof type gomponents.ElementType | Wrap element into a <div> element with class level-item and apply it to the <nav class="level"> element |
| Anything else | Apply child to the <nav class="level"> element |
The b.LevelLeft and b.LevelRight functions create content for the level left or right sections.
| Child | Action |
|---|---|
e.Element | Add the level-item class to the element |
string | Wrap text into an <p> element with class level-item |
gomponents.Nodeof type gomponents.AttributeType | Apply attribute to the level section |
gomponents.Nodeof type gomponents.ElementType | Wrap element into a <div> element with class level-item |