RTFM - fillx

master
Martin Zwigl 2025-03-16 01:08:53 +01:00
parent 99764997c8
commit 802b1d820b
2 changed files with 9 additions and 5 deletions

View File

@ -10,11 +10,11 @@ var layout = new Layout({
type:"v", c: [
{type:"h", valign:-1,
c: [
{type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1},
{type:"txt", id:"tknName", font:"6x8:2", label:"", halign:-1, fillx:1},
{type:"btn", label:"...", halign:1, cb: d=>setDummy("dot-dot-dot")}
]
},
{type:"txt", id:"tknGraph", font:"6x8:2", label:"" },
{type:"txt", id:"tknGraph", font:"6x8:2", label:"", fillx:1 },
{type:"h", valign:1,
c: [
{type:"btn", label:"07", cb: d=>setDummy("seven")},
@ -65,6 +65,7 @@ function setDummy(x) {
function getFmtTknName(currTKn) {
if (currTKn.length > csTknNameLen)
csTknNameLen = currTKn.length;
return currTKn.toUpperCase().padEnd(csTknNameLen);
}
@ -73,8 +74,11 @@ var drawTimeout;
// update the screen
function draw() {
//
// layout.tknName.label = getFmtTknName(csTokens[ticker]);
layout.tknName.label = csTokens[ticker].toUpperCase();
// layout.clear(layout.tknName);
// layout.clear(layout.tknGraph);
//
layout.tknName.label = getFmtTknName(csTokens[ticker]);
layout.tknGraph.label = currentLabel;
layout.render();

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.06.21",
"version": "0.06.22",
"description": "Crypto-Coins Infos with the help of the Binance API",
"icon": "app.png",
"tags": "clkinfo",