We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Unable to received click event on Toolbar

Here my sample :

[...]
@inherits LayoutComponentBase
@inject IJSRuntime JSRuntime
<style>
    .e-indent-icon:before {
        content: "\e70b"
    }
</style>
<EjsSidebar ID="sidebar" ref="sidebar" Type="SidebarType.Over" CloseOnDocumentClick="true">
    <ChildContent>
        <div class="title"> Sidebar content</div>
    </ChildContent>
</EjsSidebar>
<EjsToolbar id="toolbar" Clicked="@OnToolbarClicked">
    <ToolbarItems>
        <ToolbarItem Type="ItemType.Button" TooltipText="SideBar" PrefixIcon="e-indent-icon tb-icons" />
    </ToolbarItems>
</EjsToolbar>
@functions
{
    // References
    EjsSidebar sidebar;
    public void OnToolbarClicked(ClickEventArgs args)
    {
        sidebar.Show();
    }
}
[...]

When clicking on the toolbar button, the sidebar never show.

Thx.

1 Reply

BF Brice FROMENTIN May 29, 2019 08:17 AM UTC

This is fixed on the latest beta.

Thx.

Loader.
Live Chat Icon For mobile
Up arrow icon