
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
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.
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)
MultiTextInput
constructor can take:
placeholder
: to change the placeholder valuevalue
: to change the starting value inside the text inputvalues
: 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 inputvalues
is all the values of the listFAQs
A simple component used to input multiple texts
We found that multi-text-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.