Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V17.2
  • DashboardToolbarItem.template Property

    Gets or sets a knockout extension template.

    Namespace: DevExpress.Dashboard

    Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll

    Declaration

    public string template { get; set; }

    Property Value

    Type Description
    String

    A string value that is an id of the knockout template.

    Remarks

    The code sample below shows you how to create a simple template for the toolbar. This template has a “dx-extension-button” id and consists of a button.

    <script type="text/html" id="dx-extension-button">
        <div class='dx-viewer-button' data-bind="click: click, text: 'Edit'"></div>
    </script>
    

    To use this template for a dashboard toolbar, assign the id of the template to the template property.

    To learn more about knockout templates, refer to Knockout Documentation.

    See Also