summaryrefslogtreecommitdiffstats
path: root/languages/kjssupport/template/app.js
blob: aa564dd671f995415a17ad83925c56811c8d02e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env kjscmd

// Create main view
var mw = new KMainWindow();
var lv = new KListView( mw );
mw.setCentralWidget(lv);

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

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

mw.show();