Learn how to set up conditional cases in the repeater's OnItemLoad event to make repeater items behave differently, based on the values of the repeater's Item properties.
- [Instructor] When we need some of our repeater items…to look or behave differently than the others,…we can do that by setting up special cases…in the OnItemLoad event, that will only…happen for certain items.…If you open up the exercise file for H+ Sport,…we've got a repeater for a product listing here.…Right now there's only one case inside the OnItemLoad event,…and it's an If True case with no conditions,…which means that for every one of our items,…it's getting the exact same set of instructions…to set the text and the image for our products…from the values in our data set down here.…
If you click inside the repeater, you'll see…that we've got a hidden sale badge here,…and what we'll do now is we'll simulate it…so that it looks like some of our products are on sale,…but the others are regular price.…We're only going to wanna show that sale badge…for our sale items, so we'll need a new item property…to tell whether the item is on sale or not.…We can come over to our data set…and add a new column to keep track…
- Using variables in Axure
- String methods in Axure
- Truncating text strings
- Formatting dates and times
- Setting up a looping animation
- Setting up a responsive background image
- Positioning widgets in the browser
- Repeater and item properties
Skill Level Advanced
1. Widget Properties
3. Dates and Times
4. Window Properties
5. Repeater and Item Properties
6. Global Variables
Global variables2m 14s
Using plugins on Axure Share2m 49s
8. When Things Go Wrong
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.