Page 1 of 1

[ANGULAR] How to add title for eventFilter in sideBar

Posted: Sat May 22, 2021 12:13 pm
by SHQK

Hi,
I have a question about eventFilter in sideBar.
I want to add the title for eventFilter in sidebar. (as image attached)
Could you please guide me do it?


Re: [ANGULAR] How to add title for eventFilter in sideBar

Posted: Sun May 23, 2021 9:25 am
by mats

This demo shows you how to add custom widgets to the Sidebar: https://bryntum.com/examples/calendar/sidebar-customization/

You can easily add extra widgets anywhere, this adds a label above the resourceFilter widget:

filterTitle : {
    // Add simple title just before resourceFilter
    weight : 199,
    cls    : 'resource-filter-title',
    html   : 'Select resources'
},

You can find docs here: https://bryntum.com/docs/calendar/#Calendar/widget/Sidebar


Re: [ANGULAR] How to add title for eventFilter in sideBar

Posted: Sun May 23, 2021 1:49 pm
by SHQK

Thank you for your support :)
And one more thing,
I need add icon in input box.
Could you please guidance me add icon to input box?
Thank a lot!


Re: [ANGULAR] How to add title for eventFilter in sideBar

Posted: Sun May 23, 2021 5:25 pm
by mats

You the magnifying icon in your image? You can so this with basic CSS, or if you want to trigger some action when clicking it, please see https://bryntum.com/docs/scheduler/#Core/widget/Field#config-triggers


Re: [ANGULAR] How to add title for eventFilter in sideBar

Posted: Mon May 24, 2021 4:55 am
by SHQK

You the magnifying icon in your image?
=> Yes, you are right.
Could you please let me know command get icon search in bryntum?


Re: [ANGULAR] How to add title for eventFilter in sideBar

Posted: Mon May 24, 2021 9:47 am
by mats

The link to triggers is what you need, try adding to your Combo config:

triggers             : {
    filter : {
        align : 'end',
        cls   : 'b-fa b-fa-filter'
    }
},