1+ <#--
2+ This is an unmodified version of Dokka's source_set_selector.ftl
3+ https://github.com/Kotlin/dokka/blob/83b0f8ad9ad920df0d842caa9c43d69e6e2c44f6/dokka-subprojects/plugin-base/src/main/resources/dokka/templates/includes/source_set_selector.ftl
4+ -->
5+ <#macro display >
6+ <#if sourceSets?has_content >
7+ <ul class =" filter-section filter-section_loading" id =" filter-section" aria-label =" Platform filter" >
8+ <#list sourceSets as ss >
9+ <button class =" platform-tag platform-selector ${ss.platform}-like" data-active =" " aria-pressed =" true"
10+ data-filter =" ${ss.filter}" >${ss.name} </button >
11+ </#list >
12+ <div class =" dropdown filter-section--dropdown" data-role =" dropdown" id =" filter-section-dropdown" >
13+ <button class =" button button_dropdown filter-section--dropdown-toggle" role =" combobox"
14+ data-role =" dropdown-toggle"
15+ aria-controls =" platform-tags-listbox"
16+ aria-haspopup =" listbox"
17+ aria-expanded =" false"
18+ aria-label =" Toggle source sets"
19+ ></button >
20+ <ul role =" listbox" id =" platform-tags-listbox" class =" dropdown--list" data-role =" dropdown-listbox" aria-label =" Platform filter" >
21+ <div class =" dropdown--header" ><span >Platform filter</span >
22+ <button class =" button" data-role =" dropdown-toggle" aria-label =" Close platform filter" >
23+ <i class =" ui-kit-icon ui-kit-icon_cross" ></i >
24+ </button >
25+ </div >
26+ <#list sourceSets as ss >
27+ <li role =" option" class =" dropdown--option platform-selector-option ${ss.platform}-like" tabindex =" 0" >
28+ <label class =" checkbox" >
29+ <input type =" checkbox" class =" checkbox--input" id =" ${ss.filter}"
30+ data-filter =" ${ss.filter}" />
31+ <span class =" checkbox--icon" ></span >
32+ ${ss.name}
33+ </label >
34+ </li >
35+ </#list >
36+ </ul >
37+ <div class =" dropdown--overlay" ></div >
38+ </div >
39+ </ul >
40+ </#if >
41+ </#macro >
0 commit comments