Skip to content

Instantly share code, notes, and snippets.

@alyssamichelle
Created May 7, 2020 21:07
Show Gist options
  • Save alyssamichelle/2c7ec7cc33c1078a9ac2d1008ccad201 to your computer and use it in GitHub Desktop.
Save alyssamichelle/2c7ec7cc33c1078a9ac2d1008ccad201 to your computer and use it in GitHub Desktop.
<kendo-dropdownlist
class="dropdown-list-selection interval"
[style.width.px]="135"
[style.marginRight.px]="8"
[data]="intervals"
[iconClass]="'k-i-arrow-chevron-down'"
[textField]="'name'"
[valueField]="'interval'"
[(value)]="selectedInterval"
[itemDisabled]="disableIncompatibleIntervals">
<ng-template kendoDropDownListValueTemplate let-dataItem>
<span class="service-category"> Interval: {{ dataItem?.name }}</span>
</ng-template>
</kendo-dropdownlist>
<kendo-dropdownlist
[style.width.px]="140"
class="dropdown-list-selection"
[data]="charts"
[iconClass]="'k-i-arrow-chevron-down'"
[valueField]="'value'"
[textField]="'text'"
[valuePrimitive]="true"
[(value)]="chartType">
<ng-template kendoDropDownListValueTemplate let-dataItem>
<span class="chart-category selected d-flex align-items-center">
<img src="assets/{{ dataItem.value }}.png"/>
{{ dataItem.text }}
</span>
</ng-template>
<ng-template kendoDropDownListItemTemplate let-dataItem>
<span class="chart-category d-flex align-items-center">
<img src="assets/{{ dataItem.value }}.png"/>
{{ dataItem.text }}
</span>
</ng-template>
</kendo-dropdownlist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment