Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Convert widgets to classes #8

@ethernian

Description

@ethernian

Looks like widget should become their own instance properties like label or state.

Example of configuration items becoming instance properties:

button({ // `this` is bound to the button instance
    class: 'dapplet-tweet-south-metamask',
    img: { //ToDo: programmatic keys per-generator? [key]
        ready: METAMASK_ICON_READY, 
        running: METAMASK_ICON_RUNNING, 
        disabled: METAMASK_ICON_DISABLED
    },
    exec: (ctx: any) => this.state == "ready" && Core.sendWalletConnectTx('1', ctx)
          .bindTo(this.state); //binds connection state state to button's one.
    //...  more properties
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions