Copyright | (C) 2016-2025 David M. Johnson |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | David M. Johnson <code@dmj.io> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Miso.Lynx.Element.List.Property
Contents
Description
Synopsis
- data ListOptions = ListOptions {}
- data ScrollOrientation
- data ListType
- data ListItemSnapAlignment = ListItemSnapAlignment {}
- defaultListOptions :: ListOptions
- itemKey_ :: MisoString -> Attribute action
- key_ :: ToKey key => key -> Attribute action
- enableScroll_ :: Bool -> Attribute action
- enableNestedScroll_ :: Bool -> Attribute action
- listMainAxisGap_ :: MisoString -> Attribute action
- listCrossAxisGap_ :: MisoString -> Attribute action
- sticky_ :: Bool -> Attribute action
- stickyOffset_ :: Int -> Attribute action
- stickyTop_ :: Bool -> Attribute action
- stickyBottom_ :: Bool -> Attribute action
- bounces_ :: Bool -> Attribute action
- initialScrollIndex_ :: Int -> Attribute action
- needVisibleItemInfo_ :: Bool -> Attribute action
- upperThresholdItemCount_ :: Int -> Attribute action
- lowerThresholdItemCount_ :: Int -> Attribute action
- scrollEventThrottle_ :: Int -> Attribute action
- itemSnap_ :: ListItemSnapAlignment -> Attribute action
- needLayoutCompleteInfo_ :: Bool -> Attribute action
- layoutId_ :: Int -> Attribute action
- preloadBufferCount_ :: Int -> Attribute action
- scrollBarEnable_ :: Bool -> Attribute action
- reuseIdentifier_ :: MisoString -> Attribute action
- fullSpan_ :: Bool -> Attribute action
- estimatedMainAxisSizePx_ :: Int -> Attribute action
Property
Types
data ListOptions Source #
ListOptions
Constructors
ListOptions | |
Fields
|
Instances
Show ListOptions Source # | |
Defined in Miso.Lynx.Element.List.Property Methods showsPrec :: Int -> ListOptions -> ShowS # show :: ListOptions -> String # showList :: [ListOptions] -> ShowS # | |
Eq ListOptions Source # | |
Defined in Miso.Lynx.Element.List.Property |
data ScrollOrientation Source #
ScrollOrientation
Constructors
Vertical | |
Horizontal |
Instances
ToJSON ScrollOrientation Source # | |
Defined in Miso.Lynx.Element.List.Property Methods toJSON :: ScrollOrientation -> Value Source # toEncoding :: ScrollOrientation -> Encoding Source # toJSONList :: [ScrollOrientation] -> Value Source # toEncodingList :: [ScrollOrientation] -> Encoding Source # omitField :: ScrollOrientation -> Bool Source # | |
Show ScrollOrientation Source # | |
Defined in Miso.Lynx.Element.List.Property Methods showsPrec :: Int -> ScrollOrientation -> ShowS # show :: ScrollOrientation -> String # showList :: [ScrollOrientation] -> ShowS # | |
Eq ScrollOrientation Source # | |
Defined in Miso.Lynx.Element.List.Property Methods (==) :: ScrollOrientation -> ScrollOrientation -> Bool # (/=) :: ScrollOrientation -> ScrollOrientation -> Bool # |
data ListItemSnapAlignment Source #
Constructors
ListItemSnapAlignment | |
Instances
ToJSON ListItemSnapAlignment Source # | |
Defined in Miso.Lynx.Element.List.Property Methods toJSON :: ListItemSnapAlignment -> Value Source # toEncoding :: ListItemSnapAlignment -> Encoding Source # toJSONList :: [ListItemSnapAlignment] -> Value Source # toEncodingList :: [ListItemSnapAlignment] -> Encoding Source # | |
Show ListItemSnapAlignment Source # | |
Defined in Miso.Lynx.Element.List.Property Methods showsPrec :: Int -> ListItemSnapAlignment -> ShowS # show :: ListItemSnapAlignment -> String # showList :: [ListItemSnapAlignment] -> ShowS # | |
Eq ListItemSnapAlignment Source # | |
Defined in Miso.Lynx.Element.List.Property Methods (==) :: ListItemSnapAlignment -> ListItemSnapAlignment -> Bool # (/=) :: ListItemSnapAlignment -> ListItemSnapAlignment -> Bool # |
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>.
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.
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.