请在提升的属性中定义目标小部件笔记。该小部件将用于渲染启动栏图标。

#### 示例启动栏小部件

    const TPL = `<div style="height: 53px; width: 53px;"></div>`;

    class ExampleLaunchbarWidget extends api.NoteContextAwareWidget {
        doRender() {
            this.$widget = $(TPL);
        }

        async refreshWithNote(note) {
            this.$widget.css("background-color", this.stringToColor(note.title));
        }

        stringToColor(str) {
            let hash = 0;
            for (let i = 0; i < str.length; i++) {
                hash = str.charCodeAt(i) + ((hash << 5) - hash);
            }

            let color = '#';
            for (let i = 0; i < 3; i++) {
                const value = (hash >> (i * 8)) & 0xFF;
                color += ('00' + value.toString(16)).substr(-2);
            }

            return color;
        }
    }

    module.exports = new ExampleLaunchbarWidget();