TheComputerM / svelte-materialify

A Material UI Design Component library for Svelte heavily inspired by vuetify.

Home Page:https://svelte-materialify.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

searchable TextField on Select component (enhancement)

romanown opened this issue · comments

commented

need the Select component with searchable TextField caption with live search. example the Select component with cities or countries with fetched data from backend. after fix no show name of TextField after load data after fetching (as i show in issue and pull request).
example internal code


<TextField
          style={style.textField}
          label={props.label}
          onChange={onTextChange}
          onMouseDown={onOpen}
          onKeyUp={onKeyUp}
          value={text}
        />
 <Select
                value={city}
                items={cities}
                on:change={(e) => selectParams(e, "city")}
                >City</Select
              >

#245 My pull request meets your requirements: if you bind the filterValue variable with a local variable you can change the items passed to Select component with a function that fetch from BackEnd the items based on the filterValue applied.