Browse Source

Update TS: ButtonOptions (#4615)

pull/4678/head
Jeff Wilkerson 4 years ago
committed by GitHub
parent
commit
12bf391a54
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      index.d.ts

30
index.d.ts

@ -675,23 +675,23 @@ declare namespace grapesjs {
interface Panel extends Backbone.Model<PanelOptions> { } interface Panel extends Backbone.Model<PanelOptions> { }
interface Button extends Backbone.Model<ButtonOptions> { } interface Button extends Backbone.Model<ButtonOptions> { }
interface ButtonOptions { interface ButtonOptions {
id: string; id: string;
label: string; label?: string;
tagName: 'span'; tagName?: 'span';
className: string; className?: string;
command: string | ((editor: Editor, opts?: any) => void); command?: string | ((editor: Editor, opts?: any) => void);
context: string; context?: string;
buttons: any[]; buttons?: any[];
attributes: object; attributes?: { [key:string]: string};
options: object; options?: object;
active: boolean; active?: boolean;
dragDrop: boolean; dragDrop?: boolean;
togglable: boolean; togglable?: boolean;
runDefaultCommand: boolean; runDefaultCommand?: boolean;
stopDefaultCommand: boolean; stopDefaultCommand?: boolean;
disable: boolean; disable?: boolean;
} }
interface ComponentView { interface ComponentView {

Loading…
Cancel
Save