SHARE
TWEET

Untitled

a guest Apr 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 순수하게 기능으로
  2.  
  3. ```js
  4.  
  5. class A extends Inspector {
  6.   title () { return `` }
  7.   body () { return `` }
  8.   tool () { return `` }
  9.   // ref 로 instance 지정하고  
  10.  
  11.   [click('$ref')] (e) {
  12.      // 이벤트 정의하고
  13.   }
  14.  
  15. }
  16.  
  17. template : `
  18.   <A />
  19. `
  20.  
  21.  
  22. ```
  23.  
  24. # 동적 확장
  25.  
  26. ```js
  27. const A = editor.inspector.create({
  28.     title () { return `` }
  29.     body () { return `` }
  30.     tool () { return `` }
  31.    
  32.     [click('$ref')] (e) {
  33.    
  34.     }
  35. });
  36.  
  37. A.directMethod ();
  38. A.emit('message', data);
  39.  
  40. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top