Skip to main content

MultiTextInput

multi-text-input is a Dash component library. Its only component is called MultiTextInput and allows you to easily create custom lists of strings with a simple interface and delete some elements from that list. The Github repository is available here.

Demo of multi-text-input

Usage

This component is available as as Python library.

You can install it by running:

pip install multi-text-input

The following shows a simple application of this

from dash import Dash, dcc, html, Input, Output, State
from multi_text_input import MultiTextInput

app = Dash(__name__)

app.layout = html.Div(
    [
        MultiTextInput(id="input"),
        html.Div(id="output"),
    ]
)


@app.callback(
    Output("output", "children"),
    Input("input", "values"),
)
def update_output(input1):
    print(input1)
    return str(input1)

if __name__ == "__main__":
    app.run(debug=True)

Properties

MultiTextInput constructor can take:

  • placeholder: to change the placeholder value
  • value: to change the starting value inside the text input
  • values: to change the validated values (the buttons)
  • id and label

Buttons are from the multi-text-input-item class if you want to change their design.

For callbacks, you can access the value and values properties of MultiTextInput:

  • value is the actual value in the text input
  • values is all the values of the list

Metadata

Release files for multi-text-input 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multi-text-input 0.0.6
File Size Uploaded Provenance Actions
multi_text_input-0.0.6.tar.gz 12.4 kB Without provenance Details for multi_text_input-0.0.6.tar.gz

Release files / multi_text_input-0.0.6.tar.gz

Download URL multi_text_input-0.0.6.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2d1eb847ff93a00299ec538b4e110ba7070ff17dc0b663cf648039c06b61c872
BLAKE2b-256 checksum
How to use checksums
c2b4d875b04c00585368cdf411791cadf6e9a1326a8c204ed1ba21f9db9059ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for multi-text-input 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page