func (l *Lobby) SetGameInfos(gameInfos []game.Info, username string) {
	tbodyElement := l.dom.QuerySelector(".game-infos>tbody")
	tbodyElement.Set("innerHTML", "")
	if len(gameInfos) == 0 {
		emptyGameInfoElement := l.dom.CloneElement(".no-game-info-row")
		tbodyElement.Call("appendChild", emptyGameInfoElement)
		return
	}
	for _, gameInfo := range gameInfos {
		gameInfoElement := l.gameInfoElement(gameInfo, username)
		tbodyElement.Call("appendChild", gameInfoElement)
	}
}
// SetGameInfos updates the game-infos table with the game infos for the username.
SetGameInfos updates the game-infos table with the game infos for the username.
// SetGameInfos updates the game - infos table with the game infos for the username .
func (l *Lobby) SetGameInfos(gameInfos []game.Info, username string) {
	tbodyElement := l.dom.QuerySelector(".game-infos>tbody")
	tbodyElement.Set("innerHTML", "")
	if len(gameInfos) == 0 {
		emptyGameInfoElement := l.dom.CloneElement(".no-game-info-row")
		tbodyElement.Call("appendChild", emptyGameInfoElement)
		return
	}
	for _, gameInfo := range gameInfos {
		gameInfoElement := l.gameInfoElement(gameInfo, username)
		tbodyElement.Call("appendChild", gameInfoElement)
	}
}
func ( l * Lobby ) SetGameInfos ( gameInfos [ ] game . Info , username string ) { tbodyElement := l . dom . QuerySelector ( " " ) tbodyElement . Set ( " " , " " ) if len ( gameInfos ) == 0 { emptyGameInfoElement := l . dom . CloneElement ( " " ) tbodyElement . Call ( " " , emptyGameInfoElement ) return } for _ , gameInfo := range gameInfos { gameInfoElement := l . gameInfoElement ( gameInfo , username ) tbodyElement . Call ( " " , gameInfoElement ) } }
SetGameInfos updates the game-infos table with the game infos for the username.
SetGameInfos updates the game - infos table with the game infos for the username .