Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
feat: indexName on ListView e GridView (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Bleil <[email protected]>

Signed-off-by: Arthur Bleil <[email protected]>
Co-authored-by: Tiago Peres França <[email protected]>
  • Loading branch information
arthurbleilzup and Tiagoperes authored Nov 23, 2022
1 parent 4533bc3 commit e3f33ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ data class GridView constructor(
val scrollEndThreshold: Int? = null,
val isScrollIndicatorVisible: Boolean = false,
val iteratorName: String = "item",
val indexName: String = "index",
val key: String? = null,
val spanCount: Int? = null,
val direction: GridViewDirection? = VERTICAL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ data class ListView(
val onScrollEnd: List<Action>? = null,
val scrollEndThreshold: Int? = null,
val iteratorName: String = "item",
val indexName: String = "index",
val isScrollIndicatorVisible: Boolean = false,
val key: String? = null,
val useParentScroll: Boolean? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ fun makeJsonGridView() = """
"scrollEndThreshold": 80,
"isScrollIndicatorVisible": true,
"iteratorName": "listItem",
"indexName": "index",
"key": "listKey",
"spanCount": 2,
"direction": "HORIZONTAL"
Expand Down Expand Up @@ -280,6 +281,7 @@ fun makeObjectGridView() = GridView(
scrollEndThreshold = 80,
isScrollIndicatorVisible = true,
iteratorName = "listItem",
indexName = "index",
key = "listKey",
spanCount = 2,
direction = GridViewDirection.HORIZONTAL
Expand Down Expand Up @@ -315,6 +317,7 @@ fun makeListViewJson() = """
"onScrollEnd": [${makeActionAlertJson()}],
"scrollEndThreshold": 80,
"iteratorName": "itemTest",
"indexName": "index",
"isScrollIndicatorVisible": false,
"key": "key",
"templates":[
Expand All @@ -335,6 +338,7 @@ fun makeObjectListView() = ListView(
scrollEndThreshold = 80,
isScrollIndicatorVisible = false,
iteratorName = "itemTest",
indexName = "index",
key = "key",
templates = listOf(
Template(
Expand Down

0 comments on commit e3f33ba

Please sign in to comment.