svelte-multiselect
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -8,4 +8,4 @@ import { SvelteComponentTyped } from "svelte"; | ||
placeholder?: string | undefined; | ||
options: (string | number)[]; | ||
disabledOptions?: (string | number)[] | undefined; | ||
options: string[]; | ||
disabledOptions?: string[] | undefined; | ||
input?: HTMLInputElement | null | undefined; | ||
@@ -12,0 +12,0 @@ noOptionsMsg?: string | undefined; |
@@ -8,3 +8,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"type": "module", | ||
@@ -11,0 +11,0 @@ "svelte": "MultiSelect.svelte", |
@@ -80,3 +80,3 @@ <div class="maybe-hide"> | ||
| :---------------- | :---------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `options` | [required] | Array of strings (or numbers) that will be listed in the dropdown selection. | | ||
| `options` | [required] | Array of strings that will be listed in the dropdown selection. | | ||
| `maxSelect` | `null` | `null` or positive integer to allow users to select as many as they like or a maximum number of options, respectively. | | ||
@@ -86,3 +86,3 @@ | `selected` | `[]` (or `''` if `maxSelect === 1`) | Array of currently/pre-selected options when binding/passing as props respectively. | | ||
| `placeholder` | `''` | String shown when no option is selected. | | ||
| `disabledOptions` | `[]` | Array of strings (or numbers) that will be disabled in the dropdown selection. | | ||
| `disabledOptions` | `[]` | Array of strings that will be disabled in the dropdown selection. | | ||
| `required` | `false` | Prevents submission in an HTML form when true. | | ||
@@ -153,3 +153,3 @@ | `input` | `undefined` | Handle to the DOM node storing the currently selected options in JSON format as its `value` attribute. | | ||
```svelte | ||
<MultiSelect --sms-options-bg="var(--my-css-var, white)" /> | ||
<MultiSelect --sms-options-bg="white" /> | ||
``` | ||
@@ -184,3 +184,3 @@ | ||
You can alternatively style every part of this component with more fine-grained control by using the following `:global()` CSS selectors. **Note**: Overriding properties that the component already sets internally requires the `!important` keyword. | ||
You can alternatively style every part of this component with more fine-grained control by using the following `:global()` CSS selectors. | ||
@@ -187,0 +187,0 @@ ```css |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28315