TableView
On this page
Basic example
View.TableView(
View.TableRoot([
View.TableSection(
title = "TextCell",
items = [
View.TextCell(text = "First TextCell")
View.TextCell(text = "Second TextCell")
]
)
View.TableSection(
title = "ImageCell",
items = [
View.ImageCell(text = "First ImageCell", image = Image.ImagePath "icon.png")
View.ImageCell(text = "Second ImageCell", image = Image.ImagePath "icon2.png")
]
)
View.TableSection(
title = "SwitchCell",
items = [
View.SwitchCell(text = "First SwitchCell", isEnabled = false)
View.SwitchCell(text = "Second SwitchCell", isEnabled = true)
]
)
View.TableSection(
title = "EntryCell",
items = [
View.EntryCell(label = "First EntryCell", placeholder = "enter text here")
View.EntryCell(label = "Second EntryCell", placeholder = "enter more text here")
]
)
])
)
See also:
More examples
