summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/listview/listview.js
blob: 9d1e07df84d465e7904314e8a83a38a2d010def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env kjscmd

// Create main view
var mw = new TDEMainWindow();
var box = new TQVBox( mw );
mw.setCentralWidget(box);

var lv = new TDEListView( box );

lv.addColumn('Pix');
lv.addColumn('One');
lv.addColumn('Two');
lv.addColumn('Three');

lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );


mw.show();
application.exec();