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

com.slack.api.model.dialog.DialogTextAreaElement Maven / Gradle / Ivy

There is a newer version: 1.44.1
Show newest version
package com.slack.api.model.dialog;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Represents a textarea
 * dialog element

*

* A {@code textarea} is a multi-line plain text editing control. You've likely encountered * these on the world wide web. Use this element if you want a relatively long answer from * users. */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class DialogTextAreaElement implements DialogElement { /** * Label displayed to user. Required. No more than 24 characters. */ private String label; /** * Name of form element. Required. No more than 300 characters. */ private String name; /** * Type of element. For a textarea, the type is always {@code textarea} . It's required. * * @see Dialog form elements */ private final String type = "textarea"; /** * A default value for this field. Up to 500 characters. */ String value; /** * A string displayed as needed to help guide users in completing the element. * 150 character maximum. */ private String placeholder; /** * Provide {@code true} when the form element is not required. By default, * form elements are required. */ boolean optional; /** * Maximum input length allowed for element. 0-500 characters. Defaults to 150. */ public int maxLength; /** * Minimum input length allowed for element. 1-500 characters. Defaults to 0. */ int minLength; /** * Helpful text provided to assist users in answering a question. Up to 150 characters. */ String hint; /** * Subtype for this text type element (e.g. Number) */ DialogSubType subtype; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy