Expand description
Names of IR features a target lists in TargetDescriptor::features.
Constants§
- ACCORDION_
LAYOUT Accordion: columns of which one is open at a time.- ADAPTIVE_
IMAGES Image(aspect:),Grid(row_gap:)andSlider(label_hidden:).- APPEARANCE
appearance: darkorlighton a part of the interface; without it the part follows the window’s appearance.- AXIS_
PADDING padding_xandpadding_y: different padding across and along.- BOUND_
BLUR blurbound to state, changing withanimate.- BOUND_
LENGTHS - Lengths bound to expressions, such as
padding: if window.idle { 0 } else { 24 }, sizes ofColumn,RowandStack, and thecornerof aVideo. - BOUND_
SHORTCUTS - Shortcuts that follow state, such as
shortcut: app.keys.openandShortcut(key: app.keys.back): the runtime reads the text each time it changes; without it a shortcut is a literal. - BUTTON_
CONTENT Buttonwith a child that it shows instead of its label.- CAPSULE_
CONTROLS ControlGroupand capsule-shaped system controls.- CONTROLLED_
TEXT TextInput(current:): a field showing engine state, each edit running its action, the user’s text held while being edited.- CONTROLLED_
VALUES Switch(checked:),Picker(selected:),Slider(current:)andPopoverButton(open:): controls showing engine state and reporting changes as commands.- COVER_
IMAGES Image(fit: cover)withoutwidth,heightoraspect: the picture covers the room its container gives, cropped.- DELAYED_
APPEAR - An entrance after a delay, including the first mounted frame.
- DIALOG_
WINDOWS Window(role: dialog)shown modally over the primary window; without it a dialog is a window of its own.- EDGE_
GROW - Transitions growing along one axis from a fixed edge.
- FILE_
PICK pick:onButton,IconButtonandMenuItem: the system’s open panel asks for a file before the action runs.- FILL_
BUTTONS Button(width: fill): a system button stretched across its container, as a phone’s main action.- FORM_
LAYOUT Section(style: plain): rows on the page itself, as a heading that scrolls with its form;Section(padding_x:, padding_y:)its rows’ insets andForm(gap:)the room between its sections.- GRID_
CELLS Grid(cell_ratio:, cell_extra:): rows as tall as the column width gives, whatever their content.- ICON_
LABELS Label(display: icon): an icon with a nonvisual accessible title.- ICON_
MENUS Menu(style: icon): a menu shown as a round icon button.- ICON_
TABS Tab(display: icon): a tab showing only its icon, its label the accessible name.- IDLE_
CONTROL Window(idle_enabled:): idle detection switched on and off by state. Without it a target keeps detecting idleness all the time.- IMAGE_
CORNERS Image(corner:): an image with rounded corners.- IMAGE_
TEMPLATE Image(rendering: template): the image’s alpha takes the text color.- LOGIN_
SWITCH Switch(login_item: true): whether the system opens the application at login, shown where it can, left out elsewhere.- MENU_
BAR MenuBarin theWindowSet: the application’s menus in the system menu bar. A target whose platform has no menu bar for applications lists it as well: there the menus show nowhere,window.menu_baris false, and nothing is left to warn about.- MODAL_
COVER Modal(cover: compact): the modal covers the whole window where it is compact.- MODAL_
FLOW_ TIMER Modal,Flow,Timer,PickerOptionandStack(enabled:).- PAGE_
BADGES SidebarItem(badge:): a live count beside a page.- PAGE_
SEARCH - A
Searchstanding in the page, not in aToolbarorSidebar: the platform’s search field with its results below it. - PASTE
paste:onButton,IconButton,MenuItemandCommandItem: the clipboard’s text goes into a draft before the action runs.- PICTURE_
FILLS Shape(fill_from:), the average color of a picture, andfade.- POPOVER_
BUTTON PopoverButton: a button that shows its children in a popover.- RAILS
Rail: elements placed at fractions of a strip’s length.- REVEAL
reveal: hover: content shown while the pointer is over its container; without it the content always shows.- ROW_
BASELINE Row(align: baseline).- RUNTIME_
IMAGES Image(source:)from aMediaSource: a file or an http(s) URL.- RUNTIME_
PALETTE - RUNTIME_
THEME WindowSet(accent:, appearance:)chosen at run time; without it the windows keep the system’s accent and appearance.- SCALED_
SCENE ScaleBox,PositionedandMarquee: a fixed coordinate scene scaled to its room.- SCROLL_
ANCHOR ScrollView(anchor:): the item ofpositionat a fraction of the view without snapping, as near as the content reaches.- SCROLL_
BROWSING ScrollView(browsing:): a flag that holds while the person scrolls by hand.- SCROLL_
SNAP ScrollView(snap:, position:): scrolling comes to rest on an item, and a session field follows and sets the item it stands at.- SEARCH_
PALETTE Search(style: palette)and itsSearchItems: a toolbar search field that grows into a results panel.- SEARCH_
RESULTS Searchwith children: results shown below the field.- SESSION_
ACTIONS - Actions that change a session draft:
draft.panel.set(true). - SHORTCUTS
- Keyboard
shortcuts of buttons, menu items, switches and search fields; without them the controls work from the pointer only. - SHORTCUT_
INPUT ShortcutInput: a button that takes the next key pressed, with its modifiers, as a shortcut.- SIDEBAR_
HEADER SidebarHeader: content pinned above a sidebar’s list.- SIDEBAR_
WIDTH Sidebar(width:): a sidebar of a fixed width; without it the sidebar keeps the platform’s width.- SIZE_
CLASSES - The
mediumandlargelayout sizes andwindow.compactand its siblings in expressions. - STATUS_
ITEM StatusItemin theWindowSet: the application’s item in the system’s status area, with its menu, and the application running on after its last window closes. A target whose platform has no status area for applications lists it as well: there the item shows nowhere and nothing is left to warn about.- TABLE
Table: rows of data in columns, with a selection of the rows’ keys, a row menu, a primary action and sorting by a heading.- TAB_
ACCESSORY TabAccessory: a bar kept with the tabs over every page.- TEXT_
BOLD Text(bold:): a text bold while a condition holds.- TEXT_
FORMATS - Plural branches, dates and durations in translated texts, and enum labels that show their variant’s fields.
- TEXT_
LINES Text(lines:)andText(line_height:): text limited to a number of lines, or with lines of a given height.- TEXT_
WEIGHTS text { large_title: heavy }instyle!: weights of text styles.- TOGGLE_
BUTTON Switch(style: button), and aSwitchin aToolbar.- TOOLBAR_
LEADING - A
Spacerin aToolbar, parting leading items from trailing ones, andTextin a toolbar. - TOOLBAR_
SEARCH Searchin aToolbar.- UNTITLED_
DETAIL Detail(titled: false): a detail column that leaves its title bar without the destination’s name, for pages that show their own.- WATCH
Watch: a command runs when the element is mounted and whenever the value it follows changes.- WINDOW_
LANDSCAPE Window(landscape:): a phone turns the window to landscape while it holds, and back to portrait. A target whose windows never turn (a television, a desktop window) lists it as well: there the property does not apply, and nothing is left to warn about.- WINDOW_
SHORT window.short: the window is shorter than the compact breakpoint.