Widgets

Widgets

Widgets are PHP-TUI’s building blocks.

  • Bar Chart:
  • Block: Container for other widgets and can provide a border, title and padding.
  • Buffer: This widget provides access to the Buffer and allows you to mutate it directly in addition to being able to draw widgets.
  • Canvas: The canvas widget provides a surface, of arbitrary scale, upon which shapes can be drawn.
  • Chart: Renders a a composite of scatter or line graphs.
  • Composite: Render multiple widgets to the same area.
  • Gauge: A widget to display a progress bar.
  • Grid: The grid is a widget that provides either a horiztonal or vertical _layout_ based on a series of constraints.
  • Image: Render an image on a canvas matching the dimensions of the image.
  • List: The List widget allows you to list and highlight items.
  • Paragraph: This widget has the ability to show and wrap text.
  • Scrollbar: A widget to display a scrollbar
  • Sparkline: Widget to render a sparkline over one or more lines.
  • Table: Shows tabular data arranged in columns. The column spacing is determined by the "width" constraints.
  • Tabs: A widget that displays a horizontal set of Tabs with a single tab selected.