Jump to content

Customize navigation bar in UnimDBGrid


likemike

Recommended Posts

Hello!

I want to change some simple properties in the navigation bar of an UnimDBGrid:

test.thumb.jpg.301d5349148ba959dc4cd8b2e15c8911.jpg

I want to change the font color, background color, height of the bar and the font size.

I've tried some CSS with .x-scroller and .x-nativescroller, but that had no effect.

Any help would be appreciated!

Mike

Link to comment
Share on other sites

On 9/2/2023 at 4:59 PM, likemike said:

Snap_002_.thumb.jpg.69f45def8b8b0b2f484456216c322645.jpg

You can try this approach:

1. UnimDBGrid.ClientEvents.ExtEvents ->

function painted(sender, eOpts)
{
    var slider = sender.down('sliderfield');
    if (slider && slider.labelTextElement) {
        slider.labelTextElement.addCls('customSlider');
        slider.bodyElement.addCls('customSlider');
        slider.labelElement.addCls('customSlider');
        slider.setHeight(50);
    }
}

2. CustomCSS ->

.customSlider {
  font-size: 24px;
  color: white;
  text-align: center;
  width: 100%;
  display: inline-block;
  background-color: green;
}

.customSlider .x-label-text-el {
  top: 50%;
  line-height: 0;
  position: sticky;
} 

 

Link to comment
Share on other sites

×
×
  • Create New...