Is it possible to make material-tab-strip scrollable when the tab strip overflows or when the tabs overlap each other?
<material-tab-strip
(beforeTabChange)="onBeforeTabChange($event)"
[tabLabels]="categories"
[activeTabIndex]="currentTabIndex">
</material-tab-strip>
Related
I have implemented Angular Material's virtual scrolling for fixed sized items. Now I want to use it with non-fixed items. The challenge is twofold:
The items contain a text that is wrapping around multiple lines. Thus, the height of an item depends on (a) the length of the text and (b) the width of the item's container. The latter depends on the width of the browser window.
The items are displayed in a flex box in wrap-around mode. Thus, there are multiple items in each row, the number depending on the width of the browser viewport.
My question is: Can that be achieved by implementing a custom VirtualScrollStrategy? If so, how would I approach it? Are there examples anywhere?
Is there a way to add more than 2 components in HorizontalSplit panel without nesting it?
Splitter position should be based on the space allocated for the component. There is nesting of horizontal split panel but the splitter position is not set based on the component visible space
If you want a separate resizable split area for each of those components, then no, you cannot do that with just one split panel and nesting is indeed the solution. If you are fine with just one split, then you can add a layout instead of a component and just keep inserting more components to the layout.
You can use splitPanel.setSplitPosition for adjusting the split position. If your desired split position isn't static and your contents don't have fixed sizes, you could possibly use a tool like SizeReporter add-on for querying the content sizes. Note that this will undeniably cause some flickering, because you need to add the component to the layout before you can measure its size.
A horizontal splitpanel allows one component on the left and one on the right side.
Nothing more
What do you want to achieve?
If you add two layouts to HorizontalSplit there is nothing stopping you in adding more than one component to those layouts. You can also add new SplitLayouts to existing splitlayouts if you want that.
I have an array of 'n' number of items. I am displaying them in a horizontal stack view, having fixed width of the superview.
Issue is, when the number of items are more, then the horizontal stack view is not displaying all of them.
I need to display all the items of an array in some UI placeholder horizontally with some decent amount of spacing in between. If the items are more they should come in the next line.
Will horizontal stack view be suitable for my requirement ? If not, then which UI component should I use? Example will be appreciated.
Adding to the answer of #DrMickeyLauer, If you want to make your UI look better with some eye catching animation while viewing the items then go for iCarousal.
Take a look at this URL for the sample implementation https://github.com/nicklockwood/iCarousel
UICollectionView is exactly what you're after. Use it with the standard UICollectionViewFlowLayout in horizontal mode.
It will then display all its elements filling "lines" from top to bottom, thus achieving a grid layout, which seems like what you want.
I have some question about moving elements in ScrollView, let say i have some form from few elements and button in the bottom on screen.
This view is scrolling and now i have some problems when i need to hidden some elements on this form, elements witch will goes after that stay as is, and as a result i have some blank space on form where places some hidden elements.
I think what is elements have Top space to options if i hidden some of them all others will move up after that but it's not.
I can not find some way how make auto up this elements what some elements was hidden.
Thank you
Using Jquery UI's tabs I want to be able to set the tab + tab content views together to be a specific height say 500px. Since the height of the tab section varies by theme and I cannot know what height to use in px for the content view so I cannot hard code it. How do you force the whole thing to a specific height?
Thanks!
Put the entire block inside a div and apply max-height CSS property to it.