Conditions | 3 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package ui |
||
26 | func (b *FileBrowser) Tab() *container.TabItem { |
||
27 | // TODO implement custom widget for file exploration |
||
28 | l := widget.NewListWithData( |
||
29 | b.files, |
||
30 | func() fyne.CanvasObject { |
||
31 | t := canvas.NewText("template", color.Black) |
||
32 | return t |
||
33 | }, |
||
34 | func(di binding.DataItem, co fyne.CanvasObject) { |
||
35 | t := co.(*canvas.Text) |
||
36 | str, _ := di.(binding.String).Get() |
||
37 | t.Text = str |
||
38 | }, |
||
39 | ) |
||
40 | |||
41 | return container.NewTabItem( |
||
42 | b.client.Name(), |
||
43 | container.NewMax(l), |
||
44 | ) |
||
64 |