blob: 57dd43fae27d89efc4fe26a0f1253cc0306b0058 [file] [log] [blame]
class WarningIcon extends ButtonBase {
constructor()
{
super('warning-icon');
}
render()
{
super.render();
}
setWarning(warning)
{
this.setButtonTitle(warning);
}
static sizeFactor() { return 0.7; }
static buttonContent()
{
return `<g stroke="#9f6000" fill="#9f6000" stroke-width="7">
<polygon points="0,0, 100,0, 0,100" />
</g>`;
}
}
ComponentBase.defineElement('warning-icon', WarningIcon);