MCPcopy Create free account
hub / github.com/DEROFDN/Engram / layoutAssetExplorer

Function layoutAssetExplorer

layouts.go:3254–3702  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3252}
3253
3254func layoutAssetExplorer() fyne.CanvasObject {
3255 session.Domain = "app.explorer"
3256
3257 var data []string
3258 var listData binding.StringList
3259 var listBox *widget.List
3260
3261 frame := &iframe{}
3262 rectLeft := canvas.NewRectangle(color.Transparent)
3263 rectLeft.SetMinSize(fyne.NewSize(ui.Width*0.40, 35))
3264 rectRight := canvas.NewRectangle(color.Transparent)
3265 rectRight.SetMinSize(fyne.NewSize(ui.Width*0.58, 35))
3266 rectList := canvas.NewRectangle(color.Transparent)
3267 rectList.SetMinSize(fyne.NewSize(ui.Width, ui.Height*0.45))
3268 rectWidth := canvas.NewRectangle(color.Transparent)
3269 rectWidth.SetMinSize(fyne.NewSize(ui.Width, 10))
3270
3271 heading := canvas.NewText("A S S E T E X P L O R E R", colors.Gray)
3272 heading.TextSize = 16
3273 heading.Alignment = fyne.TextAlignCenter
3274 heading.TextStyle = fyne.TextStyle{Bold: true}
3275
3276 rectSpacer := canvas.NewRectangle(color.Transparent)
3277 rectSpacer.SetMinSize(fyne.NewSize(6, 5))
3278
3279 results := canvas.NewText("", colors.Green)
3280 results.TextSize = 14
3281
3282 listData = binding.BindStringList(&data)
3283 listBox = widget.NewListWithData(listData,
3284 func() fyne.CanvasObject {
3285 return container.NewStack(
3286 container.NewHBox(
3287 container.NewStack(
3288 rectLeft,
3289 widget.NewLabel(""),
3290 ),
3291 container.NewStack(
3292 rectRight,
3293 widget.NewLabel(""),
3294 ),
3295 ),
3296 )
3297 },
3298 func(di binding.DataItem, co fyne.CanvasObject) {
3299 dat := di.(binding.String)
3300 str, err := dat.Get()
3301 if err != nil {
3302 return
3303 }
3304
3305 split := strings.Split(str, ";;;")
3306
3307 co.(*fyne.Container).Objects[0].(*fyne.Container).Objects[0].(*fyne.Container).Objects[1].(*widget.Label).SetText(split[0])
3308 co.(*fyne.Container).Objects[0].(*fyne.Container).Objects[1].(*fyne.Container).Objects[1].(*widget.Label).SetText(split[1])
3309 //co.(*fyne.Container).Objects[3].(*fyne.Container).Objects[1].(*widget.Label).SetText(split[3])
3310 })
3311

Callers 3

layoutDashboardFunction · 0.85
layoutMyAssetsFunction · 0.85
layoutAssetManagerFunction · 0.85

Calls 13

layoutTransitionFunction · 0.85
layoutDashboardFunction · 0.85
removeOverlaysFunction · 0.85
GetShardFunction · 0.85
DeleteKeyFunction · 0.85
layoutMyAssetsFunction · 0.85
showLoadingOverlayFunction · 0.85
getTxDataFunction · 0.85
StoreEncryptedValueFunction · 0.85
getContractHeaderFunction · 0.85
layoutAssetManagerFunction · 0.85
NewVScrollFunction · 0.85

Tested by

no test coverage detected