Skip to content

TextArea and TextInput max_chars#1423

Merged
arraydude merged 11 commits intostreamlit:developfrom
arraydude:613/TextAreaMaxLength
May 14, 2020
Merged

TextArea and TextInput max_chars#1423
arraydude merged 11 commits intostreamlit:developfrom
arraydude:613/TextAreaMaxLength

Conversation

@arraydude
Copy link
Copy Markdown
Contributor

Issue: This PR fixes #613

Description: Adding max_chars arg to text area and text input


Contribution License Agreement

By submiting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@arraydude arraydude requested a review from a team as a code owner May 6, 2020 18:40
@arraydude arraydude requested a review from tvst May 8, 2020 18:34
@tvst
Copy link
Copy Markdown
Contributor

tvst commented May 12, 2020

This is awesome, love the animation 😃

We're almost there. Just one thing missing: we should always show the "press enter" text, even when there's a counter. So I made a few mockups of how this could work:

Input box

My favorite solution is (B) (note that I'm using the "•" character as a separator). Is this doable in our code? If not, then (A) is OK too.

Also: we should have a screenshot test of the counter text.

Copy link
Copy Markdown
Contributor

@tvst tvst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but I just noticed another small issue. PTAL at comments.

@arraydude arraydude merged commit b555afa into streamlit:develop May 14, 2020
@arraydude arraydude deleted the 613/TextAreaMaxLength branch May 14, 2020 18:03
tconkling added a commit that referenced this pull request May 18, 2020
* develop:
  Keras model hash func (#1450)
  Add support for st.echo("below") to print echoed text below the Streamlit output (#1452)
  Update 3.5 references to 3.6 (#1444)
  PyTorch model hash func (#1445)
  Fix link for pipenv in Getting Started (#1455)
  TextArea and TextInput max_chars (#1423)
  Fix multiselect docstring example (#1442)
  Configuring ReadtheDocs (#1435)
  Fix "strip()" bug when internal IP is None (#1434)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify max number of characters in text area

2 participants