Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 순수하게 기능으로
- ```js
- class A extends Inspector {
- title () { return `` }
- body () { return `` }
- tool () { return `` }
- // ref 로 instance 지정하고
- [click('$ref')] (e) {
- // 이벤트 정의하고
- }
- }
- template : `
- <A />
- `
- ```
- # 동적 확장
- ```js
- const A = editor.inspector.create({
- title () { return `` }
- body () { return `` }
- tool () { return `` }
- [click('$ref')] (e) {
- }
- });
- A.directMethod ();
- A.emit('message', data);
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement