...

Source file src/github.com/rivo/tview/demos/presentation/introduction.go

Documentation: github.com/rivo/tview/demos/presentation

     1  package main
     2  
     3  import "github.com/rivo/tview"
     4  
     5  // Introduction returns a tview.List with the highlights of the tview package.
     6  func Introduction(nextSlide func()) (title string, content tview.Primitive) {
     7  	list := tview.NewList().
     8  		AddItem("A Go package for terminal based UIs", "with a special focus on rich interactive widgets", '1', nextSlide).
     9  		AddItem("Based on github.com/gdamore/tcell", "Like termbox but better (see tcell docs)", '2', nextSlide).
    10  		AddItem("Designed to be simple", `"Hello world" is 5 lines of code`, '3', nextSlide).
    11  		AddItem("Good for data entry", `For charts, use "termui" - for low-level views, use "gocui" - ...`, '4', nextSlide).
    12  		AddItem("Extensive documentation", "Everything is documented, examples in GitHub wiki, demo code for each widget", '5', nextSlide)
    13  	return "Introduction", Center(80, 10, list)
    14  }
    15  

View as plain text