Try out Lion as base for button.

Much easier to customize, though not without its issues:
- Lion give us some stuff to handle validation, forms & input that I haven't looked into
- Slightly different mixin structure, I might be missing out on something
- Properties in extending class cause TypeScript error, but still work
This commit is contained in:
nathan
2021-07-19 11:57:06 -06:00
parent 723ec70009
commit 610d8e1547
4 changed files with 34 additions and 16 deletions

View File

@ -260,7 +260,7 @@ export class ClassWithAttributes extends ClassWithInterfaces
*/
type Constructor<T = {}> = new (...args: any[]) => T;
export const Et2Widget = <T extends Constructor<LitElement>>(superClass: T) => {
export const Et2Widget = <T extends Constructor>(superClass: T) => {
class Et2WidgetClass extends superClass implements et2_IDOMNode {
/** et2_widget compatability **/