@@ -52,10 +52,10 @@ import { <components you want to import> } from "vanjs-ui"
5252Alternatively, you can import ** VanUI** from CDN via a ` <script type="text/javascript"> ` tag:
5353
5454``` html
55- <script type =" text/javascript" src =" https://cdn.jsdelivr.net/npm/vanjs-ui@0.11.4 /dist/van-ui.nomodule.min.js" ></script >
55+ <script type =" text/javascript" src =" https://cdn.jsdelivr.net/npm/vanjs-ui@0.11.5 /dist/van-ui.nomodule.min.js" ></script >
5656```
5757
58- ` https://cdn.jsdelivr.net/npm/vanjs-ui@0.11.4 /dist/van-ui.nomodule.js ` can be used for the non-minified version.
58+ ` https://cdn.jsdelivr.net/npm/vanjs-ui@0.11.5 /dist/van-ui.nomodule.js ` can be used for the non-minified version.
5959
6060Note that: ** VanJS** needs to be imported via a ` <script type="text/javascript"> ` tag for ** VanUI** to work properly.
6161
@@ -795,21 +795,22 @@ choice && van.add(document.body, div("You chose: ", b(choice)))
795795Example 2 :
796796
797797` ` ` ts
798- const choice = await choose({
799- label: "Choose a South American country:",
800- options: [
801- "🇦🇷 Argentina", "🇧🇴 Bolivia", "🇧🇷 Brazil", "🇨🇱 Chile", "🇨🇴 Colombia", "🇪🇨 Ecuador",
802- "🇬🇾 Guyana", "🇵🇾 Paraguay", "🇵🇪 Peru", "🇸🇷 Suriname", "🇺🇾 Uruguay", "🇻🇪 Venezuela",
803- ],
804- showTextFilter: true,
805- customModalProps: {
806- blurBackground: true,
807- modalStyleOverrides: {height: "300px"},
808- },
809- selectedColor: "blue",
810- selectedStyleOverrides: {color: "white"},
811- })
812- choice && van.add(document.body, div("You chose: ", b(choice)))
798+ const choice = await choose({
799+ label: "Choose a South American country:",
800+ options: [
801+ "🇦🇷 Argentina", "🇧🇴 Bolivia", "🇧🇷 Brazil", "🇨🇱 Chile", "🇨🇴 Colombia", "🇪🇨 Ecuador",
802+ "🇬🇾 Guyana", "🇵🇾 Paraguay", "🇵🇪 Peru", "🇸🇷 Suriname", "🇺🇾 Uruguay", "🇻🇪 Venezuela",
803+ ],
804+ showTextFilter: true,
805+ selectedColor: "blue",
806+ cyclicalNav: true,
807+ customModalProps: {
808+ blurBackground: true,
809+ modalStyleOverrides: {height: "300px"},
810+ },
811+ selectedStyleOverrides: {color: "white"},
812+ })
813+ choice && van.add(document.body, div("You chose: ", b(choice)))
813814` ` `
814815
815816#### Property Reference
@@ -818,6 +819,7 @@ choice && van.add(document.body, div("You chose: ", b(choice)))
818819* ` options ` : Type ` string[] ` . Required . The options of the choice .
819820* ` showTextFilter ` : Type ` boolean ` . Default ` false ` . Optional . Whether to show a text filter for the options .
820821* ` selectedColor ` : Type ` string ` . Default ` "#f5f5f5" ` . Optional . The background color of the currently selected option .
822+ * ` cyclicalNav ` : Type ` boolean ` . Default ` false ` . Optional . Whether to navigate through the options via arrow keys in a cyclical manner . That is , if ` cyclicalNav ` is on , when you reach the end of the list , pressing the down arrow key will take you back to the beginning , and vice versa for going up the list with the up arrow key .
821823* ` customModalProps ` : Type : property bags for the [` Modal ` ](#modal ) component (except the ` closed ` field ). Default ` {} ` . Optional . The custom properties for the ` Modal ` component you want to specify .
822824* ` textFilterClass ` : Type ` string ` . Default ` "" ` . Optional . The ` class ` attribute of the text filter . You can specify multiple CSS classes separated by ` " " ` .
823825* ` textFilterStyleOverrides ` : Type ` Record<string, string | number> ` . Default ` {} ` . Optional . A [property bag ](#property - bag - for - style - overrides ) for the styles you want to override for the text filter .
0 commit comments