From 12bf391a5432bbbca7ab1abc93ecda8af3f8d0f6 Mon Sep 17 00:00:00 2001 From: Jeff Wilkerson Date: Sun, 25 Sep 2022 01:02:26 -0700 Subject: [PATCH] Update TS: ButtonOptions (#4615) --- index.d.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6f72ba4b9..3f73a0cd8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -675,23 +675,23 @@ declare namespace grapesjs { interface Panel extends Backbone.Model { } interface Button extends Backbone.Model { } - + interface ButtonOptions { id: string; - label: string; - tagName: 'span'; - className: string; - command: string | ((editor: Editor, opts?: any) => void); - context: string; - buttons: any[]; - attributes: object; - options: object; - active: boolean; - dragDrop: boolean; - togglable: boolean; - runDefaultCommand: boolean; - stopDefaultCommand: boolean; - disable: boolean; + label?: string; + tagName?: 'span'; + className?: string; + command?: string | ((editor: Editor, opts?: any) => void); + context?: string; + buttons?: any[]; + attributes?: { [key:string]: string}; + options?: object; + active?: boolean; + dragDrop?: boolean; + togglable?: boolean; + runDefaultCommand?: boolean; + stopDefaultCommand?: boolean; + disable?: boolean; } interface ComponentView {