Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add type support for multiline plain text inputs #122

Merged
merged 3 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/elements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DateTimePickerBuilder, DateTimePickerParams } from './date-time-picker'
import { EmailInputBuilder, EmailInputParams } from './email-input';
import { ExternalMultiSelectBuilder, ExternalMultiSelectParams } from './external-multi-select';
import { ExternalSelectBuilder, ExternalSelectParams } from './external-select';
import { FileInputBuilder, FileInputParams } from './file-input';
import { ImgBuilder, ImgParams } from './img';
import { NumberInputBuilder, NumberInputParams } from './number-input';
import { OverflowMenuBuilder, OverflowMenuParams } from './overflow-menu';
Expand All @@ -22,7 +23,6 @@ import { TimePickerBuilder, TimePickerParams } from './timepicker';
import { URLInputBuilder, URLInputParams } from './url-input';
import { UserMultiSelectBuilder, UserMultiSelectParams } from './user-multi-select';
import { UserSelectBuilder, UserSelectParams } from './user-select';
import { FileInputBuilder, FileInputParams } from './file-input';

export type {
ButtonBuilder,
Expand Down Expand Up @@ -312,6 +312,7 @@ export function StaticSelect(params?: StaticSelectParams): StaticSelectBuilder {
* @param {string} [params.actionId] Sets a string to be an identifier for the source of an action in interaction payloads.
* @param {string} [params.placeholder] Adds the text in place of the input before selected or interacted with.
* @param {string} [params.initialValue] Sets the default text entered into the text input at modal render.
* @param {boolean} [params.multiline] Sets wether the input will be a single line or a larger text area.
* @param {int} [params.minLength] Sets a minimum character count in order for the user to submit the form.
* @param {int} [params.maxLength] Sets a maximum character count allowed to send the form.
*
Expand Down
1 change: 1 addition & 0 deletions src/elements/text-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
export interface TextInputParams {
actionId?: string;
initialValue?: string;
multiline?: boolean;
maxLength?: number;
minLength?: number;
placeholder?: string;
Expand Down
Loading