All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.model.DivNeighbourPageSize.kt Maven / Gradle / Ivy

Go to download

DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.

There is a newer version: 30.19.0
Show newest version
// Generated code. Do not modify.

package com.yandex.div.dsl.model

import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*

class DivNeighbourPageSize internal constructor(
    @JsonIgnore val neighbourPageWidth: Property?,
) : DivPagerLayoutMode {

    @JsonProperty("type") override val type = "fixed"

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "neighbour_page_width" to neighbourPageWidth,
        )
    }
}

fun  TemplateContext.divNeighbourPageSize(): LiteralProperty {
    return value(DivNeighbourPageSize(
        neighbourPageWidth = null,
    ))
}

fun  TemplateContext.divNeighbourPageSize(
    neighbourPageWidth: Property? = null,
): LiteralProperty {
    return value(DivNeighbourPageSize(
        neighbourPageWidth = neighbourPageWidth,
    ))
}

fun  TemplateContext.divNeighbourPageSize(
    neighbourPageWidth: DivFixedSize? = null,
): LiteralProperty {
    return value(DivNeighbourPageSize(
        neighbourPageWidth = optionalValue(neighbourPageWidth),
    ))
}

fun CardContext.divNeighbourPageSize(
    neighbourPageWidth: ValueProperty,
): DivNeighbourPageSize {
    return DivNeighbourPageSize(
        neighbourPageWidth = neighbourPageWidth,
    )
}

fun CardContext.divNeighbourPageSize(
    neighbourPageWidth: DivFixedSize,
): DivNeighbourPageSize {
    return DivNeighbourPageSize(
        neighbourPageWidth = value(neighbourPageWidth),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy