Select Remote
import dev.kilua.rpc.annotations.RpcService
import dev.kilua.rpc.SimpleRemoteOption
@RpcService
interface IDictionaryService {
suspend fun dictionary(state: String?): List<SimpleRemoteOption>
}@Serializable
data class SimpleRemoteOption(
val value: String,
val text: String? = null
)SelectRemote(serviceManager = getServiceManager<IDictionaryService>(),
function = IDictionaryService::dictionary,
stateFunction = { someState.toString() },
label = "Select option from the dictionary"
)Last updated