diff --git a/src/addin/client-interfaces/addin-button-config.ts b/src/addin/client-interfaces/addin-button-config.ts new file mode 100644 index 0000000..a28a718 --- /dev/null +++ b/src/addin/client-interfaces/addin-button-config.ts @@ -0,0 +1,13 @@ +import { AddinButtonStyle } from './addin-button-style'; + +/** + * Interface for defining configuration options for Button add-ins + */ +export interface AddinButtonConfig { + + /** + * The style to use for the button + */ + style?: AddinButtonStyle; + +} diff --git a/src/addin/client-interfaces/addin-button-style.ts b/src/addin/client-interfaces/addin-button-style.ts new file mode 100644 index 0000000..7dfc19c --- /dev/null +++ b/src/addin/client-interfaces/addin-button-style.ts @@ -0,0 +1,16 @@ +/* +* Defines the style of the button +*/ +export enum AddinButtonStyle { + // No style (default) + None = 0, + + // The button represents an "add" operation + Add = 1, + + // The button represents an "edit" operation + Edit = 2, + + // The button represents a "delete" operation + Delete = 3 +} diff --git a/src/addin/client-interfaces/addin-client-ready-args.ts b/src/addin/client-interfaces/addin-client-ready-args.ts index 43ff332..502b9b4 100644 --- a/src/addin/client-interfaces/addin-client-ready-args.ts +++ b/src/addin/client-interfaces/addin-client-ready-args.ts @@ -1,3 +1,5 @@ +import { AddinButtonConfig } from './addin-button-config'; + /** * Interface for informing the AddinClient that the add-in is ready. * Will dictate if and how the add-in should show in the host page. @@ -14,4 +16,8 @@ export interface AddinClientReadyArgs { */ title?: string; + /** + * Metadata used when displaying a button. + */ + buttonConfig?: AddinButtonConfig; }