elliotchance/gedcom

View on GitHub
html/core/nav_pills_row.go

Summary

Maintainability
A
0 mins
Test Coverage
package core

import (
    "io"
)

type NavPillsRow struct {
    links []Component
}

func NewNavPillsRow(links []Component) *NavPillsRow {
    return &NavPillsRow{
        links: links,
    }
}

func (c *NavPillsRow) WriteHTMLTo(w io.Writer) (int64, error) {
    pills := NewNavPills(c.links)
    div := NewDiv("", pills)
    column := NewColumn(EntireRow, div)
    row := NewRow(column)

    return row.WriteHTMLTo(w)
}