Skip to main content

Navigate To Slide

Octory PRO
Element type: Dictionary
Availability: 2.1.0+

Jump to slide based on an index or an offset from the current slide.

Keys

NameTypePossible valuesRequired
TypeStringNavigateToSlideRequired
IndexNumber-Required if Offset is not specified - exludes Offset
OffsetNumber-Required if Index is not specified - exludes Index
ConditionDictionary (Condition)-

Detail

Type Required

Type: String
Explanation: The type of the action has to be NavigateToSlide.

Index

Type: Number
Explanation: The index of the slide to jump to. Should be between 0 and the last slide index.

Offset

Type: Number
Explanation: Specify to navigate to the next slide corresponding to the offset. Can be negative.

Condition

Type: Dictionary (Condition)
Explanation: Allows launch the action only based on a boolean expression.

Example

Specify to navigate to the next second slide from the current one.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<key>ActionSets</key>
<array>
<dict>
<key>Type</key>
<string>Parallel</string>
<key>Triggers</key>
<array>
<string>Custom(goToSecondSlide)</string>
</array>
<key>Actions</key>
<array>
<dict>
<key>Type</key>
<string>NavigateToSlide</string>
<key>Offset</key>
<integer>2</integer>
</dict>
</array>
</dict>
</array>
<!-- ... -->
</dict>
</plist>