Skip to content

Kotlin/infinitescroll views#871

Open
cliebhardt wants to merge 3 commits into
kotlin/integrationfrom
kotlin/infinitescroll-views
Open

Kotlin/infinitescroll views#871
cliebhardt wants to merge 3 commits into
kotlin/integrationfrom
kotlin/infinitescroll-views

Conversation

@cliebhardt
Copy link
Copy Markdown
Contributor

No description provided.

- InfiniteScrollCustomLoadingKotlinView
- InfiniteScrollKotlinView
- InfiniteSrollLoadingKotlinView
- Item
@cliebhardt cliebhardt added the status: waiting-for-review The PR is ready. Waiting for team members to review. label Mar 27, 2026
@cliebhardt cliebhardt assigned EHandtkeBasis and unassigned hyyan Mar 27, 2026
@EHandtkeBasis EHandtkeBasis added status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond. and removed status: waiting-for-review The PR is ready. Waiting for team members to review. labels Mar 27, 2026
@cliebhardt cliebhardt added status: on hold Paused due to an external dependency or pending decision. No action for now. Kotlin status: needs-snapshot Update to the latest snapshot before this PR can be merged. status: blocked Waiting on external dependency or details and removed status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond. status: on hold Paused due to an external dependency or pending decision. No action for now. labels Mar 29, 2026
classNames + "is-canvas"
}
div {
addClassName("custom-loading")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addClassName("custom-loading") — Java-style API when DSL extension is available. Use:

classNames += "custom-loading"

maxWidth = 600.px
classNames + "is-canvas"
}
setIcon(TablerIcon.create("cloud-download"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setIcon(TablerIcon.create("cloud-download")) — uses Java-style factory and setter. Check the InfiniteScroll DSL builder for an icon property or slot and use idiomatic Kotlin instead.


class Item: Composite<Div>() {
private val self = boundComponent
private val random = Random.Default
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private val random = Random.Default is declared but never used — names.random() uses the stdlib extension, not this field. Remove the dead field.

div {
classNames + "item-excerpt"
text = ("Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
+ "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String concatenation with +. Use a single string literal:

text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kotlin status: blocked Waiting on external dependency or details status: needs-snapshot Update to the latest snapshot before this PR can be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants