Skip to main content

Slide Properties

Slide Properties

OptionTypeDefaultDescriptionPossible Values
backgroundBackgroundPropsFFFFFFbackground color/imagesadd background color or image DataOrPathProps and/or ShapeFillProps
colorstring000000default text colorhex color or scheme color.
hiddenbooleanfalsewhether slide is hiddenEx: slide.hidden = true
newAutoPagedSlidesPresSlide[]all slides created by autopagingUseful for placeholder work on auto=pages slides (see #1133)
slideNumberSlideNumberPropsslide number props(see exmaples below)

Background/Foreground Examples

// EX: Use several methods to set a background
slide.background = { color: "F1F1F1" }; // Solid color
slide.background = { color: "FF3399", transparency: 50 }; // hex fill color with transparency of 50%
slide.background = { data: "image/png;base64,ABC[...]123" }; // image: base64 data
slide.background = { path: "https://some.url/image.jpg" }; // image: url
// EX: Set slide default font color
slide.color = "696969";

Slide Number Examples

// EX: Add a Slide Number at a given location
slide.slideNumber = { x: 1.0, y: "90%" };

// EX: Styled Slide Numbers
slide.slideNumber = { x: 1.0, y: "95%", fontFace: "Courier", fontSize: 32, color: "CF0101" };