Introduction
In pamela border can be customized using custom options. Table and Barcode implement this options.
Interface
The following interface defines border options:
export interface IBorderOptions {
width: number;
color: string;
visible: boolean;
}
CODE
Properties list
Property | Type | Description | Optional |
|---|
width
| number
| Border width in pixels |
|
color
| string
| Html hex or known-named color |
|
visible
| boolean
| Indicates if the border is visible or not |
|
Helper class
Helper class BorderOptions allows to manage a border. There is also a default border to use as default appearance.
export class BorderOptions implements IBorderOptions {
[fields]
constructor(options: IBorderOptions) {...}
static getDefaultBorder(): IBorderOptions {
return {visible: true, color: 'black', width: 1};
}
}
TYPESCRIPT