# Upgrade guide for Scheduler v4.3.0

## Buttons with menus shows a caret down arrow icon

Button has a new config `menuIcon` that specifies an icon to show when the button has a menu. It defaults to show a
caret down arrow icon. If you are using buttons with menus and want to get rid of this icon (for example if you are
already displaying a hamburger icon), set `menuIcon : null` on the button.

**Old code:**

```javascript
const button = new Button({
    icon : 'fa fa-bars',
    menu : [
        { text : 'First item'},
        { text : 'Second item'}
    ]
})
```

**New code:**

```javascript
const button = new Button({
    icon     : 'fa fa-bars',
    menuIcon : null,
    menu     : [
        { text : 'First item'},
        { text : 'Second item'}
    ]
})
```

## Buttons `menuIconCls` deprecated

Buttons `menuIconCls` was deprecated in favor of the `menuIcon` config mentioned above. It will be removed in 5.0.
Please replace any usages:

**Old code:**

```javascript
const button = new Button({
    menuIconCls : 'fa fa-bars',
    menu        : [
        { text : 'First item'},
        { text : 'Second item'}
    ]
})
```

**New code:**

```javascript
const button = new Button({
    menuIcon : 'fa fa-bars',
    menu     : [
        { text : 'First item'},
        { text : 'Second item'}
    ]
})
```


<p class="last-modified">Last modified on 2023-10-26 8:19:20</p>