asciitorium
Version:
an ASCII CLUI framework
15 lines (14 loc) • 572 B
JavaScript
import { Component } from '../core/Component.js';
export class Column extends Component {
constructor(props = {}) {
// Width should auto-size to children unless explicitly set
// Height should auto-size to children unless explicitly set
super({
...props,
width: props.width, // Don't default width - let auto-sizing calculate from children
height: props.height, // Don't default height - let auto-sizing calculate from children
layout: 'column',
layoutOptions: {}
});
}
}