Item
Item values represent individual elements from a collection or list. They’re used when working with single records or entries from larger data sets.
Working with Items
// Setting item properties
$record.name = "Bob"
$record.age = 42
// Selecting an item
$current-user = $users[1]
// Item from a list
$selected-product = $products[$index]
// Item properties
$user-name = $current-user.name
$user-email = $current-user.email
Common Uses
- Current selection tracking
- Form data handling
- Detail view display
- Single record operations
More content coming soon…