Example of Combobox Component Vuetify 3 frontend vue 3 ui/ux layout nodejs
Implement functionality using standard capabilities v-combobox.
There is a data structure of objects:
const items = ref([
{ title: 'Carrot', text: 'Sweet carrot', tags: ['vegetables', 'orange'], id: 1 },
{ title: 'Potato', text: 'Tender potato', tags: ['vegetables', 'brown'], id: 2 },
{ title: 'Cucumber', text: 'Fresh cucumber', tags: ['vegetables', 'green'], id: 4 },
{ title: 'Tomato', text: 'Juicy tomato', tags: ['vegetables', 'red'], id: 5 },
{ title: 'Zucchini', text: 'Tender zucchini', tags: ['vegetables', 'green'], id: 6 },
{ title: 'Onion', text: 'Piquant onion', tags: ['vegetables', 'white'], id: 7 },
{ title: 'Pepper', text: 'Sweet pepper', tags: ['vegetables', 'red'], id: 8 },
{ title: 'Eggplant', text: 'Tender eggplant', tags: ['vegetables', 'purple'], id: 9 },
{ title: 'Beet', text: 'Sweet beet', tags: ['vegetables', 'red'], id: 10 },
{ title: 'Cabbage', text: 'Fresh cabbage', tags: ['vegetables', 'green'], id: 11 },
{ title: 'Apple', text: 'Juicy apple', tags: ['fruits', 'red'], id: 12 },
{ title: 'Banana', text: 'Sweet banana', tags: ['fruits', 'yellow'], id: 13 },
{ title: 'Orange', text: 'Juicy orange', tags: ['fruits', 'orange'], id: 14 },
{ title: 'Pear', text: 'Sweet pear', tags: ['fruits', 'green'], id: 15 },
{ title: 'Grape', text: 'Sweet grape', tags: ['fruits', 'purple'], id: 16 },
{ title: 'Lemon', text: 'Sour lemon', tags: ['fruits', 'yellow'], id: 17 },
{ title: 'Kiwi', text: 'Tender kiwi', tags: ['fruits', 'brown'], id: 18 },
{ title: 'Pineapple', text: 'Sweet pineapple', tags: ['fruits', 'yellow'], id: 19 },
{ title: 'Strawberry', text: 'Fragrant strawberry', tags: ['fruits', 'red'], id: 20 },
{ title: 'Mango', text: 'Exotic mango', tags: ['fruits', 'green'], id: 21 },
{ title: 'Chocolate', text: 'Sweet chocolate', tags: ['sweets', 'brown'], id: 22 },
{ title: 'Marshmallow', text: 'Fluffy marshmallow', tags: ['sweets', 'white'], id: 23 },
{ title: 'Cake', text: 'Sweet cake', tags: ['sweets', 'white'], id: 24 },
{ title: 'Lollipop', text: 'Sweet lollipop', tags: ['sweets', 'red'], id: 25 },
{ title: 'Cookie', text: 'Crispy cookie', tags: ['sweets', 'golden'], id: 26 },
{ title: 'Marzipan', text: 'Tender marzipan', tags: ['sweets', 'pink'], id: 27 },
{ title: 'Waffles', text: 'Crispy waffles', tags: ['sweets', 'beige'], id: 28 },
{ title: 'Caramel', text: 'Sweet caramel', tags: ['sweets', 'amber'], id: 29 },
{ title: 'Pastila', text: 'Sweet pastila', tags: ['sweets', 'white'], id: 30 },
{ title: 'Gingerbread', text: 'Fragrant gingerbread', tags: ['sweets', 'brown'], id: 31 },
{ title: 'Shrimp', text: 'Juicy shrimp', tags: ['seafood', 'pink'], id: 32 },
{ title: 'Mussels', text: 'Juicy mussels', tags: ['seafood', 'black'], id: 33 },
{ title: 'Squid', text: 'Juicy squid', tags: ['seafood', 'white'], id: 34 },
{ title: 'Lobster', text: 'Juicy lobster', tags: ['seafood', 'red'], id: 35 },
{ title: 'Scallops', text: 'Juicy scallops', tags: ['seafood', 'white'], id: 36 },
{ title: 'Crab', text: 'Juicy crab', tags: ['seafood', 'red'], id: 37 },
{ title: 'Salmon', text: 'Tender salmon', tags: ['seafood', 'orange'], id: 38 },
{ title: 'Tuna', text: 'Tender tuna', tags: ['seafood', 'pink'], id: 39 },
{ title: 'Mackerel', text: 'Juicy mackerel', tags: ['seafood', 'silver'], id: 40 },
{ title: 'Herring', text: 'Salty herring', tags: ['seafood', 'gray'], id: 41 }
]);
There is a data structure for filter list:
filtersMenu: ['vegetables', 'fruits', 'sweets', 'seafood'],
Need to create a code example with original v-combobox from vuetify 3 library with the following functionality:
1) search by keys in all three properties (filter-keys="title, text, tags");
2) in the dropdown list of objects display the prop text;
3) in the dropdown list of objects highlighting should work (highlight matches in text);
4) upon selection of an object, in the input field add the prop title;
5) when selecting an item from filtersMenu, add it to input and update the menu with suitable objects;
Note:
- implementation should be done using standard capabilities v-combobox (without combinations of different components);
- the search function should search in all three props (title, text, tags) regardless of case;
- highlighting must work
- the dropdown list should activate when an item from filtersMenu is added (previous value can be replaced)
Applications 1
-
3031 102 0 Hello.
I'm not completely sure that I understood everything correctly, but I made a working version in Vuetify Play.
I'm ready to show it.
Write!
-
78 Ready to discuss) Experience with Vue 5+ years. Worked on the backend with NodeJS Laravel. Had experience as a layout designer. Hourly rate $10/hour. Portfolio website http://pavelos.online (use VPN if it doesn't open)
Current freelance projects in the category HTML & CSS
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 3 hours 45 minutes back ∙ 13 proposals |
Setting up a fabric online store on WordPress + WooCommerce using the Astra template
330 USD
It is necessary to set up and prepare an online store for furniture fabrics for the Norwegian market. The domain, hosting, and WordPress are already installed: eximtextilnordiq.com The site should not be created from scratch and without custom programming, but on the ready-made… Content Management Systems, HTML & CSS ∙ 8 hours 38 minutes back ∙ 48 proposals |
Rib restaurant-pizzeria websiteThe client side — a dynamic menu with Firebase, categories with tabs, dish cards with photos and prices, support for two sizes (pizza 30/40 cm), responsive mobile design, a sidebar menu with contacts and location. The admin panel — authorization, management of categories and… HTML & CSS ∙ 12 hours 29 minutes back ∙ 74 proposals |
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 13 hours 9 minutes back ∙ 22 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 1 day 5 hours back ∙ 13 proposals |