mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 05:30:28 +00:00
ca9e0c0e68
The demo shows creating ones own listmodel and using it to fill a grid. I am totally getting the hang of React btw: 500 lines of logic with no UI code and 100 lines of GtkBuilder XML and I get a sweet UI.
17 lines
477 B
XML
17 lines
477 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GtkListItem">
|
|
<property name="child">
|
|
<object class="GtkLabel">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<binding name="label">
|
|
<lookup name="label" type="SweeperCell">
|
|
<lookup name="item">GtkListItem</lookup>
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|