Hyperview

Hyperview

  • Guides
  • Examples
  • Reference
  • Blog

›Display Elements

Reference

  • Index

Behaviors

  • Behavior Attributes
  • <behavior>
  • Alert
  • Share

Display Elements

  • <doc>
  • <screen>
  • <header>
  • <body>
  • <view>
  • <text>
  • <image>
  • <list>
  • <section-list>
  • <section>
  • <section-title>
  • <items>
  • <item>
  • <spinner>
  • <web-view>

Input Elements

  • <form>
  • <text-field>
  • <select-single>
  • <select-multiple>
  • <option>
  • <picker-field>
  • <picker-item>
  • <switch>
  • <date-field>

Style Elements

  • <styles>
  • <style>
  • <modifier>

Hyperview Client

  • Hyperview component
  • Custom elements
  • Custom behaviors
  • Loading Screen

Hyperview Navigation

  • <navigator>
  • <nav-route>

<list>

The <list> element represents a list of items. Unlike child elements of a <view>, children of a <list> element undergo optimizations to efficiently render hundreds of items.

<list style="MyList">
  <item key="a">
    <text>Item A</text>
  </item>

  <item key="b">
    <text>Item B</text>
  </item>

  <item key="c">
    <text>Item C</text>
  </item>
</list>

Structure

A <list> element will only render <item> and <items> children elements. Other elements will be ignored during rendering.

Attributes

  • Behavior attributes
  • style
  • itemHeight
  • id
  • hide
  • scroll-orientation
  • shows-scroll-indicator
  • keyboard-dismiss-mode
  • keyboard-should-persist-taps

Behavior attributes

A list will accept the standard behavior attributes. However, a list will only trigger the refresh behavior (through the pull-to-refresh gesture). Other behaviors, such as presses, should be handled by the <item> elements in the list.

style

TypeRequired
stringNo

A space-separated list of styles to apply to the text. See Styles.

itemHeight

TypeRequired
integerNo

An optional number that fixes the height of every item in the list. The presence of this property helps optimize layout for very long lists, by simplifying the calculation for which items are on screen.

id

TypeRequired
stringNo

A global attribute uniquely identifying the element in the whole document.

hide

TypeRequired
false (default), trueNo

If hide="true", the element will not be rendered on screen. If the element or any of the element's children have a behavior that triggers on "load" or "visible", those behaviors will not trigger while the element is hidden.

scroll-orientation

TypeRequired
vertical (default), horizontalNo

An attribute indicating the direction in which the body will scroll.

shows-scroll-indicator

TypeRequired
true (default), falseNo

An attribute indicating whether the scroll bar should be shown.

keyboard-dismiss-mode

TypeRequired
none (default), on-drag, interactiveNo

An attribute that controls the virtual keyboard behavior when the scrollable view is interacted with. Note: interactive value is only supported on iOS. When set to this value, the keyboard is dismissed interactively with the drag and moves in synchrony with the touch, dragging upwards cancels the dismissal. On Android this is not supported and it will have the same behavior as none.

keyboard-should-persist-taps

TypeRequired
never (default), always, handledNo

An attribute that controls the virtual keyboard behavior when the scrollable view is tapped.

← <image><section-list> →
  • Structure
  • Attributes
Hyperview
Docs
ExamplesHyperview Reference
More
BlogGitHubStar
Copyright © 2025 Instawork