Module tuirealm::props

source ·
Expand description

§props

the props module expose the Properties supported by the components and all the values they can get.

Structs§

  • Bitflags that can be composed to set the visible borders essentially on the block widget.
  • Defines the properties of the borders
  • Dataset describes a set of data for a chart
  • Defines how a layout has to be rendered
  • The props struct holds all the attributes associated to the component. Properties have been designed to be versatile for all kind of components, but without introducing too many attributes at the same time.
  • Style lets you control the main characteristics of the displayed elements.
  • Table builder is a helper to make it easier to build text tables
  • Modifier changes the way a piece of text is displayed.
  • TextSpan

Enums§

  • Describes a single attribute in the component properties.
  • Describes a “selector” to query an attribute on props. The selector must identify uniquely an attribute in the properties. Check each attribute documentation to see how they’re supposed to be used, but remember that when implementing a component, you’re free to use each attribute as you prefer!
  • The type of border of a Block.
  • ANSI Color
  • Defines the 4 directions
  • Input type for text inputs
  • The payload contains the actual value for user defined properties
  • Value describes the value contained in a PropPayload
  • Describes the shape to draw on the canvas

Type Aliases§

  • Table represents a list of rows with a list of columns of text spans