add(widget/List): initial list widget; used in tabs.zig example
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m34s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m34s
This commit is contained in:
@@ -67,9 +67,11 @@ pub fn main() !void {
|
||||
.layout = Layout.createFrom(margin: {
|
||||
var margin = Layout.Margin.init(allocator, .{ .margin = 10 }, .{
|
||||
.widget = Widget.createFrom(blk: {
|
||||
const file = try std.fs.cwd().openFile("./examples/padding.zig", .{});
|
||||
defer file.close();
|
||||
var widget = Widget.RawText.init(allocator, file);
|
||||
var widget = Widget.List.init(allocator, .ordered, .{
|
||||
&[_]Cell{.{ .content = "First entry" }},
|
||||
&[_]Cell{.{ .content = "Second entry" }},
|
||||
&[_]Cell{.{ .content = "Third entry" }},
|
||||
});
|
||||
break :blk &widget;
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user