We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have 5 boxes in layout. I cannot set their position. I want to put a box location where i want.
` var blessed = require("blessed"); var screen = blessed.screen({ smartCSR: true, });
var layout = blessed.layout({ parent: screen, top: "center", left: "center", width: "100%", height: "100%", border: "line", style: { bg: "red", border: { fg: "blue", }, }, });
blessed.box({ parent: layout, width: 20, content: "Hello World 1", align: "center", height: 3, border: "line", top: 10, left: 10, });
blessed.box({ parent: layout, width: 20, content: "Hello World 2", align: "center", height: 3, border: "line", top: 10, right: 10, });
blessed.box({ parent: layout, width: 20, content: "Hello World 3", align: "center", height: 3, border: "line", bottom: 10, left: 10, });
blessed.box({ parent: layout, width: 20, content: "Hello World 4", align: "center", height: 3, border: "line", bottom: 10, right: 10, });
blessed.box({ parent: layout, width: 20, content: "Hello World 5", align: "center", height: 3, border: "line", top: 'center', left: 'center', }); screen.render(); `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I have 5 boxes in layout. I cannot set their position. I want to put a box location where i want.
`
var blessed = require("blessed");
var screen = blessed.screen({
smartCSR: true,
});
var layout = blessed.layout({
parent: screen,
top: "center",
left: "center",
width: "100%",
height: "100%",
border: "line",
style: {
bg: "red",
border: {
fg: "blue",
},
},
});
blessed.box({
parent: layout,
width: 20,
content: "Hello World 1",
align: "center",
height: 3,
border: "line",
top: 10,
left: 10,
});
blessed.box({
parent: layout,
width: 20,
content: "Hello World 2",
align: "center",
height: 3,
border: "line",
top: 10,
right: 10,
});
blessed.box({
parent: layout,
width: 20,
content: "Hello World 3",
align: "center",
height: 3,
border: "line",
bottom: 10,
left: 10,
});
blessed.box({
parent: layout,
width: 20,
content: "Hello World 4",
align: "center",
height: 3,
border: "line",
bottom: 10,
right: 10,
});
blessed.box({
parent: layout,
width: 20,
content: "Hello World 5",
align: "center",
height: 3,
border: "line",
top: 'center',
left: 'center',
});
screen.render();
`
The text was updated successfully, but these errors were encountered: