Navigation :
Envision Language
Lokad Platform
Envision Gallery
Envision Reference
- Glossary
- Tile syntax
- List of icons
- StyleCode sub-language
-
_
-
A-B-C
-
D-E-F
-
G-H-I
-
J-K-L
-
M-N-O
-
P-Q-R
-- padLeft
-- params
-- parseDate
-- parseNumber
-- parseTime
-- partition
-- partitioned
-- path
-- percent
-- percentile
-- piechart
-- plot
-- poisson
-- popCount
-- previewUrl
-- pricebrk.f
-- pricebrk.m
-- printTime
-- priopack
-- process
-- product
-- pure
-- quantile
-- quarter
-- random.binomial
-- random.integer
-- random.logLogistic
-- random.negativeBinomial
-- random.normal
-- random.poisson
-- random.ranvar
-- random.shuffle
-- random.uniform
-- rank
-- rankd
-- ranvar
-- ranvar.buckets
-- ranvar.periodicr
-- ranvar.segment
-- ranvar.uniform
-- ratio
-- read
-- regularizationTerm
-- replace
-- return
-- rgb
-- round
-- round
-- round
-- roundNext
-
S-T-U
-
V-W-X
-
Y-Z
Envision Specifications
Library
Legacy
padLeft
padLeft(source: text, pad: text, size: number) 🡒 text, const pure function
Prepends pad
- in its entirety - to source
until the resulting text value’s length is equal to or greater than the target size
. If size
is lower than source
’s length, padding is not applied.
show summary "" a1c3 with
padLeft("1234","0", 7) // returns "0001234"
padLeft("1234","0_", 7) // returns "0_0_1234"
padLeft("1234","0__", 7) // returns "0__1234"
padLeft("1234","0__", 3) // returns "1234"
The following restrictions apply, otherwise the function fails:
pad
must be non-empty.
size
must be an integer in the segment [1, 256].