Wish List or can the great Jacques pull one out of the hat
TABS can have colours which is awesome. Only issue is the the TAB itself not :-( . I wonder if one could code so that the TAB and the Background have the colour chosen. Having a row of Coloured TABS would be great aesthetically speaking
20 replies
-
add a formula field and add the style for coloring the tabs, use nth-child(1,2,3..) to select the tab you want to color:
html(" <style> .tab:nth-child(2) { background-color:#FFFFC9; color:#000; } .tab:nth-child(3) { background-color:#162F44; color:#fff; } </style> ")
for the color of the active tab (you dont need the nth-child if you want the same active color for all tabs):
.tab.selected:nth-child(1) { background-color:#CF3067; color:#fff; }
-
Thanks for all of these replies
-
Dear Alan Cooke Alan Cooke, impossible for me not to answer to such a title
.
I updated the Ninext project and now it is possible to add an event function in the "Display field only if" trigger to update different parameters of the tab including the color, the title, the tooltip and a badge.
The attached application shows examples of settings.
Enjoy
-
Following Alan Cooke Alan Cooke's request, I have added the possibility to set the background color of the tab independently from the form.
Just add item formBackgroundColor in onUpdate event function inside "Display field only if » trigger :
function onUpdate(event : any) do { caption: Caption, color: Color, backgroundColor: BackgroundColor, formBackgroundColor: 'Form BackgroundColor', tooltip: Tooltip, badge: { caption: 'Badge caption', color: 'Badge color', backgroundColor: 'Badge BackgroundColor' } } end; true
see the application in attachment
-
Hey Jacques TUR ,
would it be possible to set border colors on the tabs for selected and non-selected? I think that will look smarter.
Best regards
Content aside
-
1
Likes
- 1 yr agoLast active
- 20Replies
- 373Views
-
6
Following