API Reference › Text › Text.pad_right
method

Text.pad_right

Text.pad_right(s, width) -> string

Returns s padded with trailing spaces until it is at least width bytes long; a string already that long is returned unchanged. Left-aligns text into fixed-width columns for tables and menus.

Example

program Demo {
  handler Step phase Update {
    let cell = Text.pad_right(label, 12)
  }
}
← All symbols