class anychart.core.resource.resourceList.ImageSettings Improve this Doc
Extends: anychart.core.resource.resourceList.SettingsWithMargin
Class representing text settings for resource list items.
Methods Overview
| Specific settings | |
| opacity() | Image opacity. | 
| Size and Position | |
| align() | Image align. | 
| borderRadius() | Border radius settings. | 
| fittingMode() | Fitting mode. | 
| margin() | Margin settings. | 
| size() | Image size settings. | 
Methods Description
align
Getter for the image align. See anychart.graphics.vector.Image.Align
Returns:
string - Image align. See listing
var imagesSettings = resourceList.images(); var align = imagesSettings.align();
Setter for the image align.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| align | string | anychart.graphics.vector.Image.Align | 'none'  | Image align. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
borderRadius
Getter for the border radius of an image in item.
Returns:
Array.<number> - Border radius. See listing
var imagesSettings = resourceList.images(); var borderRadius = imagesSettings.borderRadius();
Setter for the border radius of an image in item.
Learn more about border radius https://www.w3schools.com/cssref/css3_pr_border-radius.asp
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| borders | number | Array.<number> | [10]  | Border radius. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
fittingMode
Getter for the fitting mode. See anychart.graphics.vector.Image.Fitting
Returns:
string - The fitting mode.Setter for the fitting mode.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| mode | string | anychart.graphics.vector.Image.Fitting | 'meet'  | Fitting mode. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
margin
Setter for the margin using a single value.
Params:
| Name | Type | Description | 
|---|---|---|
| margin | Array.<(number|string)> | Object | Margin to set. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
Setter for the callout margin using several values.
Params:
| Name | Type | Description | 
|---|---|---|
| value1 | string | number | Top or top-bottom space. | 
| value2 | string | number | Right or right-left space. | 
| value3 | string | number | Bottom space. | 
| value4 | string | number | Left space. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
opacity
Getter for the image opacity.
Returns:
string - Image opacity. See listing
var imagesSettings = resourceList.images(); var opacity = imagesSettings.opacity();
Setter for the image opacity.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| opacity | number | 1  | Image opacity. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
size
Getter for the image size in item.
Returns:
string | number - Image size. See listing
var imagesSettings = resourceList.images(); var size = imagesSettings.size();
Setter for the image size in item.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| size | string | number | '25%'  | Size in pixel or percent. | 
Returns:
anychart.core.resource.resourceList.ImageSettings - Self instance for method chaining.Try it:
