Skip to content

Feature Request: Ability to change the highlighted row color! #190

Open
@WhipMeHarder

Description

@WhipMeHarder

Hello,
It would be wonderful if we could change the table's highlighted row color. At the moment, there only seems to be one color, a very light mauve. If we could change the color with code such as:

Example One:

    highlightStyle := lipgloss.NewStyle().

    Foreground(lipgloss.Color("7")).
    Background(lipgloss.Color("2")).
    Bold(true)

    WithRowHighlightedStyle(highlightStyle)

Or, Example Two:

     tableModel: table.New(rows).
     WithRowHighlightedStyle(lipgloss.NewStyle().Foreground(lipgloss.Color("7")).Background(lipgloss.Color("2"))),
         }),
    }

Probably, there should be a,

   WithRowHighlightedStyle(), .... and a,
   WithColumnsHighlightedStyle(),

Many thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions