PropertyValueList

Builder-style class for constructing a list of property values. This class provides a fluent API for setting multiple property values when creating or updating a page.

Example usage:

val properties = PropertyValueList().apply {
title("Name", "My Page")
number("Price", 99.99)
select("Status", "In Progress")
multiSelect("Tags", "Important", "Urgent")
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun checkbox(idOrName: String, checked: Boolean): PropertyValueList
Link copied to clipboard
Link copied to clipboard
fun email(idOrName: String, email: String?): PropertyValueList
Link copied to clipboard
Link copied to clipboard
fun multiSelectByNames(idOrName: String, vararg selectNames: String): PropertyValueList
Link copied to clipboard
fun number(idOrName: String, number: Number?): PropertyValueList
Link copied to clipboard
fun people(idOrName: String, vararg peopleIds: UuidString): PropertyValueList
Link copied to clipboard
fun phoneNumber(idOrName: String, phoneNumber: String?): PropertyValueList
Link copied to clipboard
fun relation(idOrName: String, vararg pageIds: UuidString): PropertyValueList
Link copied to clipboard
fun selectByName(idOrName: String, selectName: String?): PropertyValueList
Link copied to clipboard
fun text(idOrName: String, richTextList: RichTextList?): PropertyValueList
fun text(idOrName: String, text: String, linkUrl: String? = null, annotations: RichTextAnnotations = RichTextAnnotations.DEFAULT): PropertyValueList
Link copied to clipboard
fun title(idOrName: String, richTextList: RichTextList?): PropertyValueList
fun title(idOrName: String, text: String, linkUrl: String? = null, annotations: RichTextAnnotations = RichTextAnnotations.DEFAULT): PropertyValueList
Link copied to clipboard
fun url(idOrName: String, url: String?): PropertyValueList