Replies: 3 comments
-
|
Hi @changlv — this is done and merged to
Quick start: var panel = Controls.CollapsiblePanel("[bold]Reasoning[/] [grey](3 steps)[/]")
.Expanded()
.AddControl(Controls.Markup()
.AddLine("[dim]• step one[/]")
.AddLine("[dim]• step two[/]")
.Build())
.OnExpandedChanged((s, expanded) => { /* react */ })
.Build();What it supports:
On the copy-as-plain-text point from your original post: text selection/copy already strips markup formatting library-wide, so content copied out of a panel body comes through as plain text. There's a reference page in the docs ( Give it a try and let me know if anything's missing for your scenarios. |
Beta Was this translation helpful? Give feedback.
-
|
@nickprotop cool~!What exciting news! I'm currently battling with the network while syncing the project. I'll send you my feedback after testing! |
Beta Was this translation helpful? Give feedback.
-
|
@nickprotop This is exactly what I wanted! It works perfectly after testing. Thanks a lot for your great work!
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
@nickprotop Looks like I'm burning your tokens again ! haha~
The requirement is straightforward: click the header to expand content, and click again to collapse it, leaving only the title visible.
Use cases:
We don't need a left-right accordion style (In my opinion, accordion components are not a typical requirement for TUI). Only vertical expand/collapse functionality is needed.
Just a suggestion!
Hope you have a wonderful weekend!
Beta Was this translation helpful? Give feedback.
All reactions