blob: 67acef6dbffec5de23d17f73b9b8571f4ae55694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package org.jetbrains.dokka.pages
import org.jetbrains.dokka.model.properties.ExtraProperty
class SimpleAttr(val extraKey: String, val extraValue: String) : ExtraProperty<ContentNode> {
data class SimpleAttrKey(val key: String) : ExtraProperty.Key<ContentNode, SimpleAttr>
override val key: ExtraProperty.Key<ContentNode, SimpleAttr> = SimpleAttrKey(extraKey)
companion object {
fun header(value: String) = SimpleAttr("data-togglable", value)
}
}
|