ToolBarButton.ImageUrl

Syntax

ImageUrl: String

Description

The ImageUrl property sets the path to button image.

Comments

By default a button does not contain an image.

Example

To execute the example, the HTML page must contain the ToolBar component named toolBar (see Example of Creating the ToolBar Component) and the icon.png file that contains an icon.

//Create a button with an image:

    var imgbtn = new PP.Ui.ToolBarButton({

            ImageUrl: "icon.png"

        });

//Add the button to the toolbar:

    toolBar.addItem(imgbtn);

After executing the example a button with image is placed on the toolbar.

See also:

ToolBarButton