이 페이지에서는 썬더의 기본 함수들을 설명합니다.

Thunder.render()

DOM 요소 안에 특정 컴포넌트를 렌더링합니다.

// Syntax
Thunder.render(targetElement, componentName, options, callback);

// Example#1 - without options
Thunder.render('#target-element', 'product-list');

// Example#2 - with options
Thunder.render('#target-element', 'product-list', {
	page: 1,
	limit: 12
});

// Example#3 - with options & callback
Thunder.render('#target-element', 'product-list', {
	page: 1,
	limit: 12
}, function(err, detail) {
	// ...
});

Thunder.open()

특정 컴포넌트를 오버레이로 렌더링합니다.

// Syntax
Thunder.open(componentName, options, callback);

// Example#1 - without options
Thunder.open('product-list');

// Example#2 - with options
Thunder.open('product-list', {
	page: 1,
	limit: 12
});

// Example#3 - with options & callback
Thunder.open('product-list', {
	page: 1,
	limit: 12
}, function(err, detail) {
	// ...
});