Our powerful JS Calendar component


Post 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?

Attachments
Group 30.png
Group 30.png (8.31 KiB) Viewed 677 times

Post 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


Post 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!


Post 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


Post 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?


Post 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'
    }
},

Post Reply