Skip to content

Commit ba24fc2

Browse files
update Qlist and QItem components
1 parent 0dba5b6 commit ba24fc2

File tree

2 files changed

+59
-60
lines changed

2 files changed

+59
-60
lines changed

snippets/html-snippets.json

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,39 @@
530530
],
531531
"description": "The QLinearProgress component displays a colored loading bar. The bar can either have a determinate progress or an indeterminate animation. It should be used to inform the user that an action is occurring in the background."
532532
},
533+
"QList": {
534+
"prefix": "qlist",
535+
"body": [
536+
"<q-list bordered>",
537+
"\t<q-item ${1:clickable} ${2:v-ripple}>",
538+
"\t\t<q-item-section ${3:avatar}>",
539+
"\t\t\t<q-icon color=\"${4:primary}\" name=\"${5:bluetooth}\" />",
540+
"\t\t</q-item-section>",
541+
"\t\t<q-item-section>Icon as avatar</q-item-section>",
542+
"\t</q-item>",
543+
"</q-list>"
544+
],
545+
"description": "The QList and QItem are a group of components which can work together to present multiple line items vertically as a single continuous element."
546+
},
547+
"QItem": {
548+
"prefix": "qitem",
549+
"body": [
550+
"<q-item>",
551+
"\t<q-item-section top avatar>",
552+
"\t\t<q-avatar color=\"primary\" text-color=\"white\" icon=\"bluetooth\" />",
553+
"\t</q-item-section>",
554+
"\t<q-item-section>",
555+
"\t\t<q-item-label>Single line item</q-item-label>",
556+
"\t\t<q-item-label caption lines=\"2\">Secondary line text.</q-item-label>",
557+
"\t</q-item-section>",
558+
"\t<q-item-section side top>",
559+
"\t\t<q-item-label caption>5 min ago</q-item-label>",
560+
"\t\t<q-icon name=\"star\" color=\"yellow\" />",
561+
"\t</q-item-section>",
562+
"</q-item>"
563+
],
564+
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
565+
},
533566
"QToolbar": {
534567
"prefix": "qtoolbar",
535568
"body": [
@@ -671,38 +704,6 @@
671704
],
672705
"description": "QTable is a Component that allows you to display data in a tabular manner."
673706
},
674-
"QList": {
675-
"prefix": "qlist",
676-
"body": [
677-
"<q-list ${1:highlight}>",
678-
"\t<q-list-header>${2:Recent chats}</q-list-header>",
679-
"\t<q-item>",
680-
"\t\t<q-item-side avatar=\"${3:statics/linux-avatar.png}\" />",
681-
"\t\t<q-item-main label=\"${4:Jim Doe}\" />",
682-
"\t\t<q-item-side right icon=\"${5:chat_bubble}\" />",
683-
"\t</q-item>",
684-
"</q-list>"
685-
],
686-
"description": "Quasar Lists and List Items are a group of components which can work together to present multiple line items vertically as a single continuous element."
687-
},
688-
"QItem": {
689-
"prefix": "qitem",
690-
"body": [
691-
"<q-item tag=\"${1:label}\">",
692-
"\t<q-item-side>",
693-
"\t\t${2:<q-checkbox v-model=\"checkboxModel\" />}",
694-
"\t</q-item-side>",
695-
"\t<q-item-main>",
696-
"\t\t<q-item-tile label>${3:Notifications}</q-item-tile>",
697-
"\t\t<q-item-tile sublabel>${4:Notify me about updates}</q-item-tile>",
698-
"\t</q-item-main>",
699-
"\t<q-item-side right>",
700-
"\t\t${5:<q-item-tile icon=\"chat_bubble\" color=\"green\" />}",
701-
"\t</q-item-side>",
702-
"</q-item>"
703-
],
704-
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
705-
},
706707
"QMarkupTable": {
707708
"prefix": "qmarkuptable",
708709
"body": [

snippets/jade-snippets.json

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,32 @@
381381
],
382382
"description": "The QLinearProgress component displays a colored loading bar. The bar can either have a determinate progress or an indeterminate animation. It should be used to inform the user that an action is occurring in the background."
383383
},
384+
"QList": {
385+
"prefix": "qlist",
386+
"body": [
387+
"q-list(bordered)",
388+
"\tq-item(${1:clickable}, ${2:v-ripple})",
389+
"\t\tq-item-section(${3:avatar})",
390+
"\t\t\tq-icon(color='${4:primary}', name='${5:bluetooth}')",
391+
"\t\tq-item-section Icon as avatar"
392+
],
393+
"description": "The QList and QItem are a group of components which can work together to present multiple line items vertically as a single continuous element."
394+
},
395+
"QItem": {
396+
"prefix": "qitem",
397+
"body": [
398+
"q-item",
399+
"\tq-item-section(top, avatar)",
400+
"\t\tq-avatar(color='primary', text-color='white', icon='bluetooth')",
401+
"\tq-item-section",
402+
"\t\tq-item-label Single line item",
403+
"\t\tq-item-label(caption, lines='2') Secondary line text.",
404+
"\tq-item-section(side, top)",
405+
"\t\tq-item-label(caption) 5 min ago",
406+
"\t\tq-icon(name='star', color='yellow')"
407+
],
408+
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
409+
},
384410
"QToolbar": {
385411
"prefix": "qtoolbar",
386412
"body": [
@@ -501,34 +527,6 @@
501527
],
502528
"description": "QTable is a Component that allows you to display data in a tabular manner."
503529
},
504-
"QList": {
505-
"prefix": "qlist",
506-
"body": [
507-
"q-list(${1:highlight})",
508-
"\tq-list-header ${2:Recent chats}",
509-
"\tq-item",
510-
"\t\tq-item-side(avatar='${3:statics/linux-avatar.png}')",
511-
"\t\t\tq-item-main(label='${4:Jim Doe}')",
512-
"\t\t\t\tq-item-side(right, icon='${5:chat_bubble}')"
513-
],
514-
"description": "Quasar Lists and List Items are a group of components which can work together to present multiple line items vertically as a single continuous element."
515-
},
516-
"QItem": {
517-
"prefix": "qitem",
518-
"body": [
519-
"q-item(tag='${1:label}')",
520-
"\tq-item-side",
521-
"\t\t| ${2:",
522-
"\t\tq-checkbox(v-model='checkboxModel') }",
523-
"\tq-item-main",
524-
"\t\tq-item-tile(label) ${3:Notifications}",
525-
"\t\tq-item-tile(sublabel) ${4:Notify me about updates}",
526-
"\tq-item-side(right)",
527-
"\t\t| ${5:",
528-
"\t\tq-item-tile(icon='chat_bubble', color='green') }"
529-
],
530-
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
531-
},
532530
"QMarkupTable": {
533531
"prefix": "qmarkuptable",
534532
"body": [

0 commit comments

Comments
 (0)