# Mixin: addChildBefore

## domjscomp.Renderable. addChildBefore

Add child before other element

### Methods

#### addChildBefore(child, marker)

  Add child before other element If marker element is undefined child is appended at end

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `child` | HTMLElement | child to add
  `marker` | HTMLElement | undefined | marker

  ##### Returns:

  child
  Type
    HTMLElement | null

#### Search results