1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Allow role select to accept a placeholder

This commit is contained in:
Andrew Kingston 2022-06-09 14:27:29 +01:00
parent 71b18a4260
commit f351fb0019

View file

@ -5,15 +5,16 @@
export let value
export let error
export let placeholder = null
</script>
<Select
bind:value
on:change
options={$roles}
placeholder={null}
getOptionLabel={role => role.name}
getOptionValue={role => role._id}
getOptionColour={role => RoleUtils.getRoleColour(role._id)}
{placeholder}
{error}
/>