@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
42 lines (41 loc) • 1.12 kB
TypeScript
/**
* Style object used in numerous AdapTable Modules
*/
export interface AdaptableStyle {
/**
* Colour background of cell: hex, rgb(a) or name
*/
BackColor?: string;
/**
* Font colour in cell: hex, rgb(a) or name
*/
ForeColor?: string;
/**
* Colour of cell border: hex, rgb(a) or name
*/
BorderColor?: string;
/**
* Weight of font: `Normal` or `Bold`
*/
FontWeight?: 'Normal' | 'Bold';
/**
* Style of font: `Normal` or `Italic`
*/
FontStyle?: 'Normal' | 'Italic';
/**
* Decoration of font: `None`, `Underline`, `Overline` or `LineThrough`
*/
TextDecoration?: 'None' | 'Underline' | 'Overline' | 'LineThrough';
/**
* Size of font: `XSmall`, `Small`, `Medium`, `Large` or `XLarge`
*/
FontSize?: 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge';
/**
* Rounds corners of an element's outer border edge; equivalent of CSS border-radius
*/
BorderRadius?: number;
/**
* Existing CSS Class; use instead of setting other object properties
*/
ClassName?: string;
}