Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
496 B

<script>
import { join } from "lodash/fp"
import { TextArea, Label } from "@budibase/bbui"
export let values
export let label
const inputChanged = ev => {
try {
values = ev.target.value.split("\n")
} catch (_) {
values = []
}
}
$: valuesText = join("\n")(values)
</script>
<div class="container">
<TextArea {label} value={valuesText} thin on:change={inputChanged} />
</div>
<style>
.container :global(textarea) {
min-height: 100px;
}
</style>