liferay / clay

A web implementation of the Lexicon Experience Language
http://clayui.com
Other
207 stars 470 forks source link

chore(@clayui/core): adds support for resizer indicator in table #5839

Closed matuzalemsteles closed 3 months ago

matuzalemsteles commented 3 months ago

Well, I ended up thinking a lot about this... to "fix" the visual bug of the resizer indicator in FDS when using the new ClayTable and the cell activates sort. The indicator that FDS adds as children to the cell needs to be positioned on the edges of the cell but when it has sort it fails due to the internal HTML structure changing to support the visual states that we have to cover the Lexicon and this also ends up due to the properties CSS that prevent this.

A first solution I thought of was to add a new API to add new right or left elements in a cell independent of the internal structure when truncate or sort is enabled but this can add flexibility that we don't want and can break the Lexicon extension principles so to not go along this line of development as we will be developing the resizer implementation I added an initial surface to start implementing the resizer but extremely simple with the APIs that the FDS needs, in the future they will be removed and we will only have a resizable property. This is one reason why I'm adding it as UNSAFE and also marking it so it doesn't appear in the documentation.

matuzalemsteles commented 3 months ago

Moving forward with this.