-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add buttons to callback args. * Use title instead of text.
- Loading branch information
1 parent
81fb7df
commit c831d35
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters