Add action list to cards with callback (#1392)

- Add the ActionDescriptor functionality. This is a table of information with actionable links
- Also add optional status indicator which shows a color. In the future, would like to extend to have icon in this space as an alternative.
- Fixed 1 issue with account management UI throwing an error on cancel
This commit is contained in:
Kevin Cunnane
2018-05-11 10:59:42 -07:00
committed by GitHub
parent c0a6f3e012
commit 41ffd6e8ae
9 changed files with 178 additions and 29 deletions

View File

@@ -118,3 +118,26 @@ export interface IModelViewButtonDetails {
enabled: boolean;
hidden: boolean;
}
/// Card-related APIs that need to be here to avoid early load issues
// with enums causing requiring of sqlops API to fail.
export enum StatusIndicator {
None = 0,
Ok = 1,
Warning = 2,
Error = 3
}
export interface CardProperties {
label: string;
value?: string;
actions?: ActionDescriptor[];
status?: StatusIndicator;
}
export interface ActionDescriptor {
label: string;
actionTitle?: string;
callbackData?: string;
}