Learn the difference between substr(), substring(), and slice() methods. Discover how to use slice() with a negative parameter to get back characters from the end of the string.
- [Narrator] There are a few different methods…that Axure gives us, that we can use…to truncate text in our prototypes.…The first method, "Substr", has two parameters.…The first parameter is for the starting index,…that's the position of the first character we want,…And the second parameter is for the length,…or the number of characters that we want.…Let's say we had this string with an…email address in it. If we use the substr method,…and pass in 0 for the starting index…and 8 for the length, we would get back…just the part of the string that says…"your name". Note that the string index…always starts at 0, so whenever we want…to start at the beginning of our string,…we'll use 0 for that first parameter.…
Technically, that second parameter is optional.…We can pass in only the only the starting index…if we want, and if we do that, substr will…start at our starting index and then go until…the end of the string, and return everything…after that. We can also pass in a negative number…in as the starting index. If we use a…
- 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.