File: list_factory_nested.blp

package info (click to toggle)
blueprint-compiler 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: python: 8,504; sh: 31; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using Gtk 4.0;

Gtk.ListView {
  factory: Gtk.BuilderListItemFactory list_item_factory {
    template ListItem {
      child: Gtk.ListView {
        factory: Gtk.BuilderListItemFactory list_item_factory {
          template ListItem {
            child: Gtk.Label {
              label: bind template.item as <$MyObject>.name;
            };
          }
        };
      };
    }
  };
}