Implementation of the 'label' markup element. A div HTML element is crated and if the attributes text and icon are set, they are applied. The class lto-label is added to allow CSS manipulations.

see

  IRenderable

see

  Icon

### Hierarchy

- Label

### Implements

- IRenderable

## Index

### Constructors

- constructor

### Properties

- spec
- TYPE

### Methods

- render

## Constructors

### constructor

- new Label(spec: ISpecification): Label

- - Defined in lib/renderable/label/index.ts:20

  #### Parameters

  - ##### spec: ISpecification

  #### Returns Label

## Properties

### Private spec

spec: ISpecification

- Defined in lib/renderable/label/index.ts:20

### Static TYPE

TYPE: "label" = "label"

- Defined in lib/renderable/label/index.ts:18

## Methods

### render

- render(renderer: IRenderer, isNested: boolean): HTMLElement

- Implementation of IRenderable.render

  - Defined in lib/renderable/label/index.ts:29

  Renders an element

  #### Parameters

  - ##### renderer: IRenderer

  - ##### isNested: boolean

  #### Returns HTMLElement

  the element which was rendered

Generated using TypeDoc