JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Slider › Customize scale labels and tick marks › Reply To: Customize scale labels and tick marks
Hi,
I want to change splitter bar and text color.
I can’t change splitter header background color ( I think that style element is “–smart-surface” )
I can change splitter header text ( –smart-surface-color )
This is sample code:
<div>
<div><!DOCTYPE html></div>
<div><html xmlns=”http://www.w3.org/1999/xhtml”></div>
<div><head></div>
<div> <title>Splitter Nested Splitters</title></div>
<div> <meta charset=”utf-8″ /></div>
<div> <meta http-equiv=”X-UA-Compatible” content=”IE=edge” /></div>
<div> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /></div>
<div> <meta name=”viewport” content=”width=device-width, initial-scale=1.0, maximum-scale=1.0″ /></div>
<script type=”module” src=”./node_modules/smart-webcomponents/source/modules/smart.splitter.js”></script>
<div> <link rel=”stylesheet” type=”text/css” href=”./node_modules/smart-webcomponents/source/styles/smart.default.css” /></div>
<div></div>
<style type=”text/css”>
<div> smart-splitter {</div>
<div> width: 100%;</div>
<div> height: 100vh;</div>
<div></div>
<div> –smart-surface-color: Blue;</div>
<div> –smart-surface: Red;</div>
<div></div>
<div> }</div>
<div></div>
<div> </style></div>
<div></head></div>
<div><body class=”viewport”></div>
<div> <smart-splitter id=”horizontalSplitter” resize-mode=”adjacent”></div>
<div> <smart-splitter-item size=”25%”>Left</smart-splitter-item></div>
<div> <smart-splitter-item>Middle</smart-splitter-item></div>
<div> <smart-splitter-item size=”25%”>Right</smart-splitter-item></div>
<div></smart-splitter></div>
<div></div>
<div> <script></div>
<div></div>
<div></div>
<div></div>
<div> window.onload = function () {</div>
<div> const splitter = document.getElementById(‘horizontalSplitter’);</div>
<div></div>
<div></div>
<div> }</div>
<div> </script></div>
<div></div>
<div></body></div>
<div></html></div>
</div>
<div></div>
<div></div>
<div></div>