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

com.grafana.foundation.table.Options Maven / Gradle / Ivy

There is a newer version: 11.3.0-1730898216
Show newest version
// Code generated - EDITING IS FUTILE. DO NOT EDIT.

package com.grafana.foundation.table;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.List;
import com.grafana.foundation.common.TableSortByFieldState;
import com.grafana.foundation.common.TableFooterOptions;
import com.grafana.foundation.common.TableCellHeight;

public class Options {
    // Represents the index of the selected frame
    @JsonProperty("frameIndex")
    public Double frameIndex;
    // Controls whether the panel should show the header
    @JsonProperty("showHeader")
    public Boolean showHeader;
    // Controls whether the header should show icons for the column types
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("showTypeIcons")
    public Boolean showTypeIcons;
    // Used to control row sorting
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("sortBy")
    public List sortBy;
    // Controls footer options
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("footer")
    public TableFooterOptions footer;
    // Controls the height of the rows
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("cellHeight")
    public TableCellHeight cellHeight;
    
    public String toJSON() throws JsonProcessingException {
        ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
        return ow.writeValueAsString(this);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy