This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import component from '../system/component.parent.mjs'; | |
class scaffold extends component { | |
constructor(selector) { | |
super(selector); | |
// DOM element representing the message panel | |
this._panel = this.dom.querySelector("[data-panel]"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-component data-component-module="scaffold" data-component-init data-component-id="scaffold1" data-name="Alpha" class="c_scaffold f_row--2"> | |
<textarea data-panel="" rows="10"></textarea> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dragon.components.header.instances.globalheader.hide(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dragon.component.mount(window.document.body).then(() =>{ | |
console.log('mounted!'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let header = document.getElementById("header"); | |
dragon.component.create(header).then(component => { | |
console.log(component); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dragon.module.load("test").then(module => { | |
console.log(module.hello); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dragon.script.load("https://code.jquery.com/jquery-3.4.1.min.js").then(() =>{ | |
$( document ).ready(function() { | |
console.log($(document)); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('🐉',() => { | |
console.log(dragon); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-component data-component-module="scaffold" data-component-init data-component-id="scaffold1" class="c_scaffold"> | |
<!-- inner markup --> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/dragon.mjs" type="module"></script> |
NewerOlder