Top

class anychart.core.ui.StageCredits Improve this Doc

Define class Credits.
Note: Use anychart.ui#credits method to create instance of this class.
Note: You can't customize credits without a license key. See AnyChart Licensing to learn more.

Methods Overview

Specific settings
alt()Alternative text for credits.
imgAlt()Image alternative text.
logoSrc()Logo source for credits.
text()Text for credits.
url()Url address for credits.
Interactivity
enabled()Credits state (enabled or disabled).

Methods Description

alt

Getter for credits alternative text.

Returns:

string - Credits alternative text.
See listing
var credits = stage.credits();
var creditsAlt = credits.alt();
Setter for credits alternative text.

Params:

Name Type Description
value string Title value.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it:

enabled

Getter for the sateg credits state.

Returns:

boolean null - Credits state.
See listing
var credits = stage.credits();
var state = credits.enabled();
Setter for the stage credits state.

Params:

Name Type Description
value boolean Value to set.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it:

imgAlt

Getter for the image alternative text.

Returns:

string - Image alternative text.
See listing
var imgAlt = credits.imgAlt();
Setter for the image alternative text.

Params:

Name Type Description
value string Alternative text.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it:

logoSrc

Getter for credits logo source.

Returns:

string - Credits logo source.
See listing
var credits = stage.credits();
var creditsLogoSrc = credits.logoSrc();
Setter for credits logo source.
Note: Note: You can't customize credits without a license key. See AnyChart Licensing to learn more.

Params:

Name Type Description
value string Logo source value.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it:

text

Getter for credits text value.

Returns:

string - Credits text.

Try it:

Setter for credits text value.

Params:

Name Type Description
value string Text value.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it:

url

Getter for credits url address.

Returns:

string - Credits url address.
See listing
var credits = stage.credits();
var creditsUrl = credits.url();
Setter for credits url.

Params:

Name Type Description
value string Url value.

Returns:

anychart.core.ui.StageCredits - Self instance for method chaining.

Try it: