This is a migrated thread and some comments may be shown as answers.

Indent childred

1 Answer 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
IanV
Top achievements
Rank 1
Veteran
IanV asked on 11 Dec 2020, 08:54 PM

I have a PanelBar with children. How can I make the children index an extra 3em so that the children are moved to the right and appear under the parent, offset by a bit.

 

Right now the children are directly below their parent.

 

        <kendo-panelbar-item title="Orders">
          <kendo-panelbar-item title="Upload Orders"></kendo-panelbar-item>
          <kendo-panelbar-item title="Batch Summary"></kendo-panelbar-item>
        </kendo-panelbar-item>

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 15 Dec 2020, 09:14 AM

Hello Ian,

Thank you for the screenshot provided.

The PanelBarItem component does not support built-in indent property, but using some custom CSS code, the position of the element can be modified as desired:

  <kendo-panelbar-item title="Orders">
          <kendo-panelbar-item class="custom-indent" title="Upload Orders"></kendo-panelbar-item>
          <kendo-panelbar-item class="custom-indent" title="Batch Summary"></kendo-panelbar-item>
  </kendo-panelbar-item>
 .custom-indent{
        padding-left: 15px;
      }

I hope this helps.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PanelBar
Asked by
IanV
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Share this question
or