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

(error)

color

string

Html hex or known-named color

(error)

visible

boolean

Indicates if the border is visible or not

(error)

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