Skip to content

feat: add kotlin views for tree#896

Open
cliebhardt wants to merge 2 commits into
kotlin/integrationfrom
kotlin/tree
Open

feat: add kotlin views for tree#896
cliebhardt wants to merge 2 commits into
kotlin/integrationfrom
kotlin/tree

Conversation

@cliebhardt
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/main/kotlin/com/webforj/samples/views/tree/TreeKotlinView.kt Outdated
styles["overflow"] = "auto"
tree {
styles["margin"] = "var(--dwc-space-l)"
setCollapsedIcon(FeatherIcon.CHEVRON_RIGHT.create())
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.

setCollapsedIcon() — if Tree exposes getCollapsedIcon(), use property syntax:

collapsedIcon = FeatherIcon.CHEVRON_RIGHT.create()

tree {
styles["margin"] = "var(--dwc-space-l)"
setCollapsedIcon(FeatherIcon.CHEVRON_RIGHT.create())
setExpandedIcon(FeatherIcon.CHEVRON_DOWN.create())
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.

setExpandedIcon() — if Tree exposes getExpandedIcon(), use property syntax:

expandedIcon = FeatherIcon.CHEVRON_DOWN.create()

Comment thread src/main/kotlin/com/webforj/samples/views/tree/TreeIconsKotlinView.kt Outdated
Comment thread src/main/kotlin/com/webforj/samples/views/tree/TreeLazyLoadKotlinView.kt Outdated
defaultValue = node.text
firstButtonText = "Modify"
secondButtonText = "Cancel"
setFirstButtonTheme(ButtonTheme.PRIMARY)
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.

setFirstButtonTheme(ButtonTheme.PRIMARY) — use property syntax if InputDialog exposes a getter:

firstButtonTheme = ButtonTheme.PRIMARY

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

property is not available for set*ButtonTheme of OptionDialogs.

Comment thread src/main/kotlin/com/webforj/samples/views/tree/TreeSelectionKotlinView.kt Outdated
@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 30, 2026
@cliebhardt cliebhardt added status: needs-snapshot Update to the latest snapshot before this PR can be merged. status: blocked Waiting on external dependency or details labels Apr 2, 2026
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. status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants