TablePropertiesConfig
The configuration of the table properties user interface (balloon).
Properties
alignment : TableAlignmentConfig | undefinedmodule:table/tableconfig~TablePropertiesConfig#alignmentConfiguration of the table alignment behavior in the editor output.
const tableConfig = { tableProperties: { alignment: { useInlineStyles: false // Use CSS classes instead of inline styles } } };Copy codebackgroundColors : TableColorConfig | undefinedmodule:table/tableconfig~TablePropertiesConfig#backgroundColorsThe color palette for the table background color picker.
const tableConfig = { tableProperties: { backgroundColors: [ { color: 'hsl(0, 0%, 100%)', label: 'White', hasBorder: true }, { color: 'hsl(120, 75%, 60%)', label: 'Green' } ] } };Copy codeNote: This configuration only affects the UI. It does not limit or filter the colors in the data.
Defaults to
defaultColors.Related:
borderColors : TableColorConfig | undefinedmodule:table/tableconfig~TablePropertiesConfig#borderColorsThe color palette for the table border color picker.
const tableConfig = { tableProperties: { borderColors: [ { color: 'hsl(0, 0%, 0%)', label: 'Black' }, { color: 'hsl(0, 0%, 100%)', label: 'White', hasBorder: true } ] } };Copy codeNote: This configuration only affects the UI. It does not limit or filter the colors in the data.
Defaults to
defaultColors.Related:
colorPicker : false | ColorPickerConfig | undefinedmodule:table/tableconfig~TablePropertiesConfig#colorPickerConfiguration of the color picker in the table properties balloon.
If set to
falsethe picker will not appear.defaultProperties : TablePropertiesOptions | undefinedmodule:table/tableconfig~TablePropertiesConfig#defaultPropertiesDefault styles for newly created tables.
const tableConfig = { tableProperties: { defaultProperties: { borderStyle: 'dashed', borderColor: 'hsl(0, 0%, 90%)', borderWidth: '3px', alignment: 'left', width: '550px', height: '450px' } } }Copy codeNote: The model does not store the default values. The editor will only keep values that differ from the defaults.
See
TablePropertiesOptionsfor the full list of properties.