In package com.eden.orchid.api.theme.menus

class com.eden.orchid.api.theme.menus.MenuItem.Builder

Fields

var children: MutableList?
var page: OrchidPage?
var anchor: String?
var title: String?
var indexComparator: Comparator?
var data: Map?
var separator: Boolean
context: OrchidContext

Constructors

constructor(context: OrchidContext, builder: Builder.()->Unit)
Parameters:
constructor(context: OrchidContext)
Parameters:

Methods

fun fromIndex(index: OrchidIndex): Builder
Parameters:
fun childrenBuilders(children: MutableList): Builder
Parameters:
  • children: MutableList
fun children(children: List): Builder
Parameters:
  • children: List
fun child(child: Builder): Builder
Parameters:
fun pages(pages: List): Builder
Parameters:
  • pages: List
fun page(page: OrchidPage?): Builder
Parameters:
fun anchor(anchor: String): Builder
Parameters:
  • anchor: String
fun title(title: String): Builder
Parameters:
  • title: String
fun separator(separator: Boolean): Builder
Parameters:
  • separator: Boolean
fun indexComparator(indexComparator: Comparator?): Builder
Parameters:
  • indexComparator: Comparator?
fun data(data: Map): Builder
Parameters:
  • data: Map
fun build(): MenuItem
Parameters:
  • No parameters