소스코드 참고 시 출처 표기 부탁드립니다!
- arguments - target: [DOMElement, insertPosition] | DOMElement - tag: HTML tag name - attributes: HTML attributes, styles
- property
-
$parent: DOMElement - $ : DOMElement - methods - HTML: (template | $target, template) => void - addHTML: (template | $target, template) => void - bindEvents: 입력 x => 컴포넌트의 필드를 읽어 이벤트 리스너에 등록
-
inherit BaseComponent
-
property - isLoading: Boolean
-
methods - handleError: (error, errorTypes, showErrorMessage, errorPosition) => void - tryFetchData: (apiCall, query, options) => data
- ooptions
- cb
- errorTypes
- cache
- errorPosition
- showErrorMessage
- showLoading - get: (context,storeType) => data - set: (data) => { on: (context,storeTypes) } - subscribe: (context) => void
- ooptions
- property - store: {}
- methods
- has: (context) => !!store[context] - get: (context) => store[context].data - set: (context,data) => store[context] - subscribe: (context, element) => void - publish: (context) => void
- property
- cache : {}
- methods
- has : (context,key) => cache[context]
- get : (context) => cache[context][key]
- set : (context, key) => cache[context]