# GeoExt

### Navigation

- GeoExt »
- API Reference »
- Widgets »
- `GeoExt.LegendImage`

# `GeoExt.LegendImage`

Extends
  - Ext.BoxComponent
xtype
  `gx_legendimage`

class `GeoExt.``LegendImage`(config)
  Show a legend image in a BoxComponent and make sure load errors are dealt with.

## Config Options

Configuration properties in addition to those listed for Ext.BoxComponent.

`defaultImgSrc`
  `String` Path to image that will be used if the legend image fails to load. Default is Ext.BLANK_IMAGE_URL.

`imgCls`
  `String` Optional css class to apply to img tag

`url`
  `String` The url of the image to load

## Public Methods

Public methods in addition to those listed for Ext.BoxComponent.

`LegendImage.``setUrl`()

  Parameter: | url – `String` The new URL.

  Sets the url of the legend image.

### Navigation

- index
- modules |
- next |
- previous |
- GeoExt »
- API Reference »
- Widgets »
- `GeoExt.LegendImage`