# Timeline | Select items

# Set selection

Enter one or multiple ids of items, then press select to select the items. This demo uses the function `Timeline.setSelection(ids)`. Optionally, the window can be moved to the selected items.

Select item(s):
Focus on selection

If the height of the timeline is limited some items may be vertically offscreen. This demo uses `Timeline.setSelection(ids, {focus: true})` and demonstrates that focusing on an item will cause the timeline to scroll vertically to the item that is being focused on. You can use the buttons below select a random item either above or below the currently selected item.

If focusing on multiple items only the first item will be scrolled to. Try entering several ids and hitting select.

Select item(s):