ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Tab container: support tab label with count

Open sunnyyadav100 opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Support of tab label with counter -

image

e.g. https://sapui5.hana.ondemand.com/#/entity/sap.m.TabContainer/sample/sap.m.sample.TabContainerIcons (without tab image)

https://sap.github.io/fundamental-styles/components/tabs.html#tabs-with-counters

We have a requirement to show count on tab label as highlighted in above screenshot.

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

sunnyyadav100 avatar Feb 08 '20 11:02 sunnyyadav100

Hi @sunnyyadav100,

Have you tried using the additionalText property?

fifoosid avatar Feb 10 '20 08:02 fifoosid

Yes, in that label appear as Tab label (23). image

As per fiori guideline (I think), count should show above the label

sunnyyadav100 avatar Feb 10 '20 09:02 sunnyyadav100

@sunnyyadav100 It turns out that "Standard" (the counter above the main text) and "Inline" (the counter next to the main text) modes exist: https://experience.sap.com/fiori-design-web/icontabbar/

Although, the component is called ui5-tabcontainer we tried to also implement the design of sap.m.IconTabBar from openui5 as the controls are very similar and we don`t want to have two components. So, the ui5-tabcontainer is a little bit of mix between sap.m.TabContainer and sap.m.IconTabBar

We will think of something, so you can be able to display it both ways.

ilhan007 avatar Feb 12 '20 12:02 ilhan007