miso-lynx
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Lynx.Element.List.Property

Description

 
Synopsis

Property

Types

data ListOptions Source #

ListOptions

Constructors

ListOptions 

Fields

Instances

Instances details
Show ListOptions Source # 
Instance details

Defined in Miso.Lynx.Element.List.Property

Eq ListOptions Source # 
Instance details

Defined in Miso.Lynx.Element.List.Property

Defaults

defaultListOptions :: ListOptions Source #

defaultListOptions

Attributes

itemKey_ :: MisoString -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#required-item-key

The item-key attribute is a required attribute on <list-item>.

key_ :: ToKey key => key -> Attribute action Source #

Synonym for keyProp Allows a user to specify a Key inside of an [Attribute action]

enableScroll_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#enable-scroll

Indicates whether the <list> component is allowed to scroll.

enableNestedScroll_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#enable-nested-scroll

Indicates whether <list> can achieve nested scrolling with other scrollable containers. When enabled, the inner container scrolls first, followed by the outer container.

listMainAxisGap_ :: MisoString -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#list-main-axis-gap

Specifies the spacing of <list> child nodes in the main axis direction, which needs to be written in the style.

listCrossAxisGap_ :: MisoString -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#list-cross-axis-gap

Specifies the spacing of list child nodes in the cross axis direction, which needs to be written in the style.

sticky_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#sticky

Declared on the <list> component to control whether the <list> component as a whole is allowed to be sticky at the top or bottom.

stickyOffset_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#sticky-offset

The offset distance from the top or bottom of <list> for sticky positioning, in px.

stickyTop_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#sticky-top

Declared on the <list-item> child node to control whether the node will be sticky at the top.

stickyBottom_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#sticky-bottom

Declared on the <list-item> child node to control whether the node will be sticky at the bottom.

bounces_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#bounces

  • iOS* only

Declared on the <list-item> child node to control whether the node will be sticky at the bottom.

Default value: True

initialScrollIndex_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#initial-scroll-index

Specifies the node position to which <list> automatically scrolls after rendering effective only once.

needVisibleItemInfo_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#need-visible-item-info

Controls whether the scroll event callback parameters include the position information of the currently rendering node.

The scroll events include: * scroll * scrolltoupper * scrolltolower

Default value: False

upperThresholdItemCount_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#upper-threshold-item-count

Triggers a scrolltoupper event once when the number of remaining displayable child nodes at the top of <list> is less than `upper-threshold-item-count` for the first time.

lowerThresholdItemCount_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#lower-threshold-item-count

Triggers a scrolltolower event once when the number of remaining displayable child nodes at the bottom of <list> is less than `lower-threshold-item-count` for the first time.

scrollEventThrottle_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#scroll-event-throttle

Sets the time interval for the <list> callback scroll event, in milliseconds (ms). By default, the scroll event is called back every 200 ms.

Default Value: 200

itemSnap_ :: ListItemSnapAlignment -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#item-snap

Used to mark the unique identifier for this data source update, which will be returned in the layoutcomplete event callback.

  • factor: The parameter for paginated positioning, with a range of `[0, 1]`.
  • offset: Additional offset parameter added on top of factor.

needLayoutCompleteInfo_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#need-layout-complete-info

Controls whether the layoutcomplete event includes the node layout information before and after this layout, the <list> Diff information that triggered this layout, and the current <list> scroll state information.

layoutId_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#layout-id

Used to mark the unique identifier for this data source update, which will be returned in the layoutcomplete event callback.

Default Value: -1

preloadBufferCount_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#preload-buffer-count

This attribute controls the number of nodes outside <list> that are preloaded.

Default Value: 0

scrollBarEnable_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#scroll-bar-enable

  • iOS* only

Indicates whether the <list> component scroll bar is displayed.

Default value: True

reuseIdentifier_ :: MisoString -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#reuse-identifier

Sets the reuse id for <list-item>. When rendering child nodes, the <list> component reuses <list-item> based on the reuse-identifier attribute value. Only <list-item> with the same reuse-identifier attribute value will be reused.

fullSpan_ :: Bool -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#full-span

The full-span attribute is used to indicate that a <list-item> occupies a full row or column.

estimatedMainAxisSizePx_ :: Int -> Attribute action Source #

https://lynxjs.org/api/elements/built-in/list.html#estimated-main-axis-size-px

Specifies the placeholder size in the main axis direction for <list-item> before it is fully rendered, in px. If not set, the default value is the size of <list> in the main axis direction.