mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
add overview options to decoration in demo
This commit is contained in:
+1
-2
@@ -547,13 +547,12 @@ function loadTest() {
|
||||
function addDecoration() {
|
||||
term.options['overviewRulerWidth'] = 15;
|
||||
const marker = term.addMarker(1);
|
||||
const decoration = term.registerDecoration({ marker });
|
||||
const decoration = term.registerDecoration({ marker, overviewRulerOptions: { color: '#ef2929'} });
|
||||
decoration.onRender((e) => {
|
||||
if (e.classList.value === 'xterm-decoration') {
|
||||
e.style.backgroundColor = '#ef2929';
|
||||
}
|
||||
});
|
||||
term.registerDecoration({marker, overviewRulerOptions: { color: '#ef2929'}})
|
||||
}
|
||||
|
||||
function addOverviewRuler() {
|
||||
|
||||
Reference in New Issue
Block a user