swing-trading-dashboard/assets/dashboard.js

11 lines
527 B
JavaScript
Raw Normal View History

document.documentElement.setAttribute('data-bs-theme', 'dark')
var dagcomponentfuncs = (window.dashAgGridComponentFunctions = window.dashAgGridComponentFunctions || {});
dagcomponentfuncs.SignalRenderer = function (props) {
let signalElements = props.value.split('').map((char) => {
let className = char === 'N' ? 'no-signal' : 'long-signal';
return React.createElement('span', { className: className });
});
return React.createElement('div', { className: 'signal-container' }, signalElements);
};