Horizontal Scroll Bar for JSF hx:dataTableEx component - css

In my JSF application I need to have hx:datatableEx table component with horizontal scroll bar.
Why it's required:
Row text must not wrap into next line.(Must be displayed in single line).
If text in the row grows more than table column size or table size, then add a scroll bar to the table for rendering complete text instead of hiding overflown text.
Following Image describes the same problem.
In picture you can see the vertical scroll bar because datatable height exceeds.
You can also see how text of the attribute Details column(Last column) is hiding when text is more than table or column width with no horizontal scroll bar to view the hidden text.
Please help me to get it done.
Thank you
Nagesh.N

Related

How do the horizontal scroller always visible in material table when the entire page is scrolled?

I always need a horizontal scroll bar in my website, when the page is scrolled.
I created the following sample with using material table.
I found a sample floatingScroll what i want, but it is using the jquery. How can I simulate the behavior with material table in React? I hope always display the horizontal scroll bar in the red box.
Thanks

text in component does not auto-resize border-box

I want to set up a component with a coloured background rectangle and a text, that is ready to be resized in width and also automatically resizes its height based on the length of the text.
For now I can only resize the height of the component manually, but would prefer if the component can do this automatically, like HTML does.
I added a constraints top, left&right to the text layer. And constraints top&bottom and left/right to the background layer.
Have a look at the component, the current and expected instance.
Does anyone have a helping hand on this?
Press F then click/drag to create your colored background rectangle.
Press T to create your text layer inside the frame and add constraints to it as follows: top & bottom and left & right.
Select Auto Height in the right-side panel under Text.
See detail.
Readjust the width of the text layer to your preferred size and center it inside the frame.
Select the frame layer (parent) which should contain the text layer inside of it (child).
Press Shift A to transform the selected frame into Auto Layout. Notice the icon changed.
Now, to resize, select the text layer and drag ā€˜nā€™ drop.
See result.

Text shrinking when cell selected in Material UI Table

I'm trying to figure out which piece of CSS is making the text shrink by a very tiny but noticeable amount in the cells when you select one of them
Here's a code sandbox. Just click on one of the cells to focus it and you'll see what I mean:-
https://codesandbox.io/s/material-ui-table-virtualized-t2xkt
NOTE: when you select a cell, it replaces the plain div with a customised Material UI TextField
Which CSS property do I need to adjust to ensure that the text size and position stays uniform when the cell is focused or not focused?
You were right it was the padding. Solved it by remove a pixel from the padding-top in the div within the table cell when not focused

How to Set Vertical and Horizontal Scrolling to CollectionReusableView and CollectionVeiwCell respectively

UICollectionView's ContentView have two items.
CollectionReusableView.
CollectionViewCell.
here, I want to set CollectionReusableView as header with Vertical Scrolling direction and collectionVeiwCells with Horitontal Scrolling Direction.
how do i make this posible
here,Top View is collectionReusableView and Bellow view is collectionViewCell.
i would like to have horizontal scrolling for CollectionveiwCells alone.
We can't set horizontal and vertical scrolling separately for UICollectionView's cells or collectionReusableViews. It's only possible to set scrolling directions and bounce to UICollectionView class alone.
I have planed to customize UIView with stretch header, for that i have arranged two separate UITableViews with vertical scrolling inside the two collectionViewCells with horizontal scrolling direction respectively. This collectionveiw should be part of UITableViewController with static cells which should have vertical scrolling only. To get more clarity on this please refere the image bellow.

Is it possible to get a custom ItemRenderer to scroll the DataGrid rather than its cell?

I'm having an issue with a custom ItemRenderer I've written for a DataGrid. With this ItemRenderer, it's possible that the contents could exceed the width and height of the DataGrid cell - and when this happens, scroll bars appear, letting me scroll the individual cell.
What I would like, however, is that when the contents of the cell are too large, the entire DataGrid scrolls, rather than the individual cells.
Now, when I set the custom ItemRenderer's horizontal and vertical scroll bar policies to "off", I get the vertical scrolling on the DataGrid that I want (the individual cells stretch to accommodate the full height of the contents) but I don't get any horizontal scrolling. Instead, any content too wide for the cell is clipped. Incidentally, setting the DataGrid's horizontal scroll bar policy to "on" has no effect, the scroll bar gutter is drawn, but nothing scrolls
Is there a way to force the DataGrid to scroll horizontally when my custom ItemRenderer's contents are too wide for the cell?
You may have to find a way calculate and expand the size of the DataGrid horizontally in a canvas so that it shows all the cells, and the scrollbar would appear as part of the canvas.

Resources