aboutsummaryrefslogblamecommitdiffstats
path: root/source/kinds.js
blob: c318870bf481a53fc8b187a4d3592d9d12a2c099 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                               


                            








                                                                  

          








                                                      


         
enyo.kind({
	name: "VerseList",
	kind: "List",
	published: {
		clientStyle: "display: inline;"
	},
	events: {
		onOffset: ""
	},

	create: function () {
		this.inherited(arguments);
		this.$.port.addRemoveClass("verse-view", true);
		this.clientStyleChanged();
	},

	clientStyleChanged: function () {
		this.$.generator.setClientStyle(this.clientStyle);
	},

	reset: function (inIndex) {
		this.getSelection().clear();
		this.invalidateMetrics();
		this.invalidatePages();
		this.stabilize();
		if(inIndex)
			this.scrollToRow(inIndex + 1);
		else
			this.scrollToRow(1);
	}

});