How to change grid tab style in peoplesoft - tabs

My page is having grid which contain two tabs (tab sepaprtor). I need to make some color differentiate when clicked on tab a from tab b. Both the tabs are blue color and so when tab a is active I need to give some other color. A custom style sheet is being used on page on component level. I am unable to fin reference of this style. So other than changing style sheet, is any way to accomplish this. Al's howt check, which all components are attached to this style sheet.

For changing tab folder colors, you can use PSSTYLEDEF.
As you are changing grid tabs, use PSSTYLEDEF or the style sheet that is associated with the page definition in which the grid is located.
Note. The grid tab styles can be set for each grid individually using the grid properties. However, for page tabs, you can set the styles using only the default styles in the application style sheet.
You must access PSACTIVETAB, PSINACTIVETAB, and any other tab classes that your application uses (for example, PSLEVEL1GRIDACTIVETAB).
PSACTIVETAB
--->For folder tabs, open the `PSACTIVETAB` class by double-clicking the class name.
On the Background tab, select the color of the background of the active tab (matching the color of the tab image that you created).
Note: Use the drop-down list box to find the color or browse through the color choices.
PSINACTIVETAB
Do the same for the PSINACTIVETAB class (or any others that you need)
--->For folder tabs by double-clicking the class name and selecting the Background tab.
--->For grid tabs, access the style class that is associated with the grid tab.
As i don't have much rep. to paste image i just linked my study on stylesheet.
Refer it for more style classes
Grid tab level style classes

Related

Problem using my active class and linking through my id

I'm working on a vertical tab section. Having linked each tab to it's content using different id's the links seems not working except for the one with the active class. The hover for the active class is also not working.

How can we extend chart legend in Foundry-Slate

In slate, chart widget have label option that display legend (color dot + label name) at some place of the chart (top, left, bottom, ...).
I notice 2 limitations with this legend on bar chart and I would like to improve them on my Slate apps.
1 issue: label are ordered in the order series appears on the bar chart (from left to right).
2 issue: when segmented and not-segmented data are stacked on the bar chart, label of not-segmented data have wrong color (even if we set series color parameter, and if we don't color attribution is random and change from one loading to the next).
For that reason I decided to produce my on labels in an HTML widget. I get a nice result just with a function that sort label and return a <div class="bp3-label" style="background:${labelColor};">${labelName}<\div> for each label. But I loose the interactivity (this is a convenient function of labels).
Is there a way to transfer this interactivity to my "custom label" and make click on this selecting all relevant bars on my bar chart?
I'm thinking to use slClickEvent and slClickEventValue props on the DIVs to push data relative to the clicked Label in a variable and to make the bar chart "selectedValue" property dependant of this variable.
Is it the best ways ?
Will the bar be highlighted in accorance with chart "selectedValue"?
You're on the correct track here - I often build custom chart legends in an HTML widget to have more control over the appearance and interaction compared to the native legend. If you search on your Foundry instance, you'll even find a folder of Slate apps that are examples of different HTML widget patterns, including one called HTML - Legend that shows some examples with custom CSS and Blueprint styles.
For the interactivity, I'd probably go with using custom HTML selection, rather than custom HTML click events, because with the custom selection, Slate will automatically add a selected class to whatever element you've added the selection to, which will make it easy to update the styling to reflect the selection.
Nothing would stop you from doing this with custom clickEvents instead, but you'd then need to also do some more work to reflect the selection status in the legend or else go without that extra affordance.
If you search your Foundry instance for Line Chart Series Selection with Custom Legend you'll find an example that shows exactly this. In that specific example, the Line "selection" is indicated on the chart by changing the line styling; with a Bar chart, you'd actually want to template (with Handlebars) the selection status of the chart in the </> panel. Then, when the user makes a selection using the legend, the chart will reflect that selection as if they'd chosen by clicking on the bars themselves.

How to change color of select field with empty value?

I created an app with Django as its backend and I have a form that features a dropdown with Foreign Key elements. The problem is that I want the dropdown option that doesn't have a value (i.e. the first empty/placeholder option) to be a different colour when unfocused than the options that do have values. I am using Bootstrap 4 and right now the form-control class is setting all the form inputs to a specific color, even the dropdown's colour? How can I change this with CSS, JQuery or both?

How to change checkbox icon (eg:pretty checkbox) in agGrid?

I'm using agGrid to render the data. There is a checkbox in the table to select the row in the table. I want to change the default icon tick style to pretty checkbox icon. How to change the icon style in agGrid, without using cell renderer component.

Trying to subclass Tab in order to make style changes

I'm trying to make a material design inspired Tab component, and I'm having a lot of trouble getting a bottom border to show up on the selected tab. I understand that the best way to do this is to override the Tab style in the theme, but there's no way to set just a bottom border there. I even went so far as to use an ActionListener to set the border when the tab is clicked, but then the border only flashes for a moment, as it seems the UIID gets reset immediately after being selected.
I'm looking for an effect similar to the Skype android app, where the current tab is 'underlined' at all times.
How can I make the border appear?
You can set a 9 piece border in the style that has a solid or transparent/translucent color and a line on the bottom.
No need to subclass.