iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

Property Grid without Expandable Block #209

Open FelixGirard opened 1 year ago

FelixGirard commented 1 year ago

Property Grid

I wanted to use the property grid. I found the documentation to be lacking some visuals or better sample code.

I created a sample showing what I could do following the documentation:

image

Request

I would like to have a list of properties without the expandable block (without a category). You can see in red the section I would like:

image

The property list does not render exactly the same as the content of the category block for some reason. There is no way in the property list to change the size of the first column, for example.

Questions

I would also like to know why we need to pass the width/height, or have it wrapped in a sample.

Improvements

For others, it would be nice if my sample could be improved and made public or linked by the documentation.

Thanks!

raplemie commented 1 year ago

Hi, regarding the lack of proper documentation, we should improve things in the upcoming months, hopefully leveraging some features of our documentation stack that should allow providing examples that will update as code imrpoves.

Regarding the request, is the main issue the ability to have/move the splitter in the PropertyList component ? (IE, is the PropertyList component doing what you need otherwise?)

FelixGirard commented 1 year ago

Hi!

That's nice to hear for the documentation improvements, looking forward to those!

For the request, I'm looking indeed to the PropertyList component. This is what I used in the first example of my sandbox. Yes the main issue is that I do not have the splitter in the PropertyList component.