Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

why there is no treeview like plugin?

Open dbsxdbsx opened this issue 3 years ago • 4 comments

for the semantic version 2.4.1. I didn't find any plugin that could behave like a tree view, the most like plugin would be Bulleted list from here , but the sub title canot be folded.

Is there some other option?

dbsxdbsx avatar Mar 30 '21 10:03 dbsxdbsx

Even though this feature is available in SUI, I've been using Fomantic UI since this repo stopped getting updates without issue. They have a bunch of bug fixes and features SUI doesn't have.

Anyway, you should be able to do it with a nested accordion. There's an example in the docs: https://fomantic-ui.com/modules/accordion.html#nested-accordions

If you want to use a non-styled accordion you can add a little css to make the nested menus look better:

.ui.accordion:not(.styled) .title {
  border-bottom: 1px solid grey;
}
.ui.accordion:not(.styled) .content {
  margin-left: 1em;
}

jsfiddle

GammaGames avatar Apr 08 '21 16:04 GammaGames

@GammaGames , thanks for your advice. The link you provided I've visited before, And I did work around the issue by it. Hopefully , SUI could have a better tree view plugin like that in ELEMENTUI.

dbsxdbsx avatar Apr 09 '21 01:04 dbsxdbsx

Why is it so difficult to use great effects? What's the matter?

1137882300 avatar Apr 16 '21 07:04 1137882300

A tree accordion was implemented in the community fork Fomantic-UI by https://github.com/fomantic/Fomantic-UI/pull/2197 See https://jsfiddle.net/lubber/tmo1p5gc/1/

lubber-de avatar Jan 07 '22 13:01 lubber-de