PadStart / String Layer
Add padding characters to the left side of strings until they reach a specified length. Similar to Python's str.rjust() or Rust's pad_to_width_with_alignment(). Useful for:
- Right-aligning text
- Zero-padding numbers (e.g., 42 -> 0042)
- Creating fixed-width codes
- Formatting identifiers
Table
0
0
Table
Select
columnThe string column to pad. Strings longer than Length
remain unchanged.
Length
u32Target length (Length
) for padded strings. Examples:
- abc with length=5 becomes ⎵⎵abc
- 42 with length=4 and fill_char=0 becomes 0042
- long_text with length=4 stays long_text
FillChar
stringSingle character (FillChar
) for padding. Common uses:
- Space ( ) for right alignment
- Zero (0) for numeric padding
- Hash (#) for reference numbers
AsColumn
nameName for the new column. If not provided, the system generates a unique name. If AsColumn
matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.