extjs buttons in toolbar appearance

前端 未结 5 1189

Hey, i have a small question really but something i cant seem to find out.

when i place a button in a extjs toolbar, it appears with a default apperance (like any wi

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 18:42

    This is pretty close to this: ExtJS Button Style Toolbar

    The answer I was looking for was found in that question:

    Adding

    ctCls: 'x-btn-over'
    

    to the button's config makes it actually look like a button. This is kind of a hack because this is essentially styling the toolbar button to appear like it's being hovered over, but in my case I decided this was good enough.

    edit: I haven't touched ExtJS since version 3, so it looks like this no longer works.

提交回复
热议问题