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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$ref": "#/definitions/ButtonItem", | |
"definitions": { | |
"PostProcessDirectives": { | |
"type": "object", | |
"properties": { | |
"EventHandlerProps": { | |
"type": "object", | |
"properties": { |
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
export interface ListProps { | |
list: List; | |
} | |
export type List = DefaultList | DescriptionList | OrderedList | DecoratedList; | |
export interface DefaultList { | |
listItems: ListItem[]; | |
}; |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$ref": "#/definitions/BlockView", | |
"definitions": { | |
"BlockView": { | |
"type": "object", | |
"properties": { | |
"blocks": { | |
"type": "array", | |
"items": { |
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
export interface CheckboxField extends Choice { | |
checkboxField: { | |
/** | |
* Displays checkbox by default | |
* @default false | |
*/ | |
useToggleSwitches: boolean; | |
} | |
} |
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
// Flex Layout Example | |
{ | |
"layoutConfig": { | |
"flexConfig": { | |
"align": "left", | |
"gapSettings": { | |
"rowGap": "5%", | |
"columnGap": "10%" | |
}, | |
"scaleSettings": { |
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
import { Block } from '../../types'; | |
export interface LayoutProps { | |
layoutConfig: GridLayout | FlexLayout | ContainerLayout; | |
stylesOptions?: (MarginStyle | PaddingStyle | DimensionStyle | BorderStyle)[]; | |
} | |
export interface GridLayout { | |
gridConfig?: { | |
template: 'dynamic' | 'fixed' | 'maxwidth' | 'static'; // do we need a 'maxwidth' template when there is a boolean? |
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
/*** | |
* @View | |
* | |
* @name chart | |
* @type block | |
* @description Chart Block - Visual representation of data in the form of a chart. The chart block has 7 different charts that contains static data. It can also contain dynamic data that is populated from the calculation block. | |
* @maturing | |
* @content | |
* @prop @required [chart_type] type={string} title="Type of Chart" | |
* "doughnut" |
NewerOlder