Skip to content

Creating a new Scene2D Table with expanded cells #93

Answered by czyzby
amitkot asked this question in Q&A
Discussion options

You must be logged in to vote

Check the Scene2D examples section. You can access the table cells in two ways:

// 1. Widget's building block lambda parameter:

scene2d.table {
  button {
    it.expand()
  }
  button { cell ->
    cell.expand()
  }
}

// 2. `cell` extension method:

scene2d.table {
  button().cell(expand = true)
  button {
    // ...
  }.cell(expand = true)
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by czyzby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #93 on December 11, 2020 14:30.