Sha256: 9652de374b413553a96b6a301e1c9e6d19cd94b6719ba80d1b038b3673695634

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

Ext.define('<%= @bundle %>.view.<%= singular_name %>.<%= class_name %>Detail', {
	
	extend : 'Base.abstract.Popup',
	
 	requires : [ 
		'<%= @bundle %>.view.<%= singular_name %>.<%= class_name %>Form'
	],
	
	xtype : '<%= @bundle.downcase %>_<%= singular_name %>_detail',
	
	title : T('title.<%= singular_name %>'),
		
	items : [ {
		xtype : '<%= @bundle.downcase %>_<%= singular_name %>_form'
	} ],
	
	setRecord : function(record) {
		this.record = record;
		this.down('form').loadRecord(this.record);
	},
	
	getRecord : function() {
		return this.record;
	}
});

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
hatio-core-0.0.6 lib/generators/hatio/resource_view/templates/detail/DetailPopup.js
hatio-core-0.0.6 lib/generators/hatio/resource_view/templates/item/ItemPopup.js