Skip to content

Commit

Permalink
update Qlist and QItem components
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelaziz18003 committed Sep 6, 2019
1 parent 0dba5b6 commit ba24fc2
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 60 deletions.
65 changes: 33 additions & 32 deletions snippets/html-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,39 @@
],
"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."
},
"QList": {
"prefix": "qlist",
"body": [
"<q-list bordered>",
"\t<q-item ${1:clickable} ${2:v-ripple}>",
"\t\t<q-item-section ${3:avatar}>",
"\t\t\t<q-icon color=\"${4:primary}\" name=\"${5:bluetooth}\" />",
"\t\t</q-item-section>",
"\t\t<q-item-section>Icon as avatar</q-item-section>",
"\t</q-item>",
"</q-list>"
],
"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."
},
"QItem": {
"prefix": "qitem",
"body": [
"<q-item>",
"\t<q-item-section top avatar>",
"\t\t<q-avatar color=\"primary\" text-color=\"white\" icon=\"bluetooth\" />",
"\t</q-item-section>",
"\t<q-item-section>",
"\t\t<q-item-label>Single line item</q-item-label>",
"\t\t<q-item-label caption lines=\"2\">Secondary line text.</q-item-label>",
"\t</q-item-section>",
"\t<q-item-section side top>",
"\t\t<q-item-label caption>5 min ago</q-item-label>",
"\t\t<q-icon name=\"star\" color=\"yellow\" />",
"\t</q-item-section>",
"</q-item>"
],
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
},
"QToolbar": {
"prefix": "qtoolbar",
"body": [
Expand Down Expand Up @@ -671,38 +704,6 @@
],
"description": "QTable is a Component that allows you to display data in a tabular manner."
},
"QList": {
"prefix": "qlist",
"body": [
"<q-list ${1:highlight}>",
"\t<q-list-header>${2:Recent chats}</q-list-header>",
"\t<q-item>",
"\t\t<q-item-side avatar=\"${3:statics/linux-avatar.png}\" />",
"\t\t<q-item-main label=\"${4:Jim Doe}\" />",
"\t\t<q-item-side right icon=\"${5:chat_bubble}\" />",
"\t</q-item>",
"</q-list>"
],
"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."
},
"QItem": {
"prefix": "qitem",
"body": [
"<q-item tag=\"${1:label}\">",
"\t<q-item-side>",
"\t\t${2:<q-checkbox v-model=\"checkboxModel\" />}",
"\t</q-item-side>",
"\t<q-item-main>",
"\t\t<q-item-tile label>${3:Notifications}</q-item-tile>",
"\t\t<q-item-tile sublabel>${4:Notify me about updates}</q-item-tile>",
"\t</q-item-main>",
"\t<q-item-side right>",
"\t\t${5:<q-item-tile icon=\"chat_bubble\" color=\"green\" />}",
"\t</q-item-side>",
"</q-item>"
],
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
},
"QMarkupTable": {
"prefix": "qmarkuptable",
"body": [
Expand Down
54 changes: 26 additions & 28 deletions snippets/jade-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,32 @@
],
"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."
},
"QList": {
"prefix": "qlist",
"body": [
"q-list(bordered)",
"\tq-item(${1:clickable}, ${2:v-ripple})",
"\t\tq-item-section(${3:avatar})",
"\t\t\tq-icon(color='${4:primary}', name='${5:bluetooth}')",
"\t\tq-item-section Icon as avatar"
],
"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."
},
"QItem": {
"prefix": "qitem",
"body": [
"q-item",
"\tq-item-section(top, avatar)",
"\t\tq-avatar(color='primary', text-color='white', icon='bluetooth')",
"\tq-item-section",
"\t\tq-item-label Single line item",
"\t\tq-item-label(caption, lines='2') Secondary line text.",
"\tq-item-section(side, top)",
"\t\tq-item-label(caption) 5 min ago",
"\t\tq-icon(name='star', color='yellow')"
],
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
},
"QToolbar": {
"prefix": "qtoolbar",
"body": [
Expand Down Expand Up @@ -501,34 +527,6 @@
],
"description": "QTable is a Component that allows you to display data in a tabular manner."
},
"QList": {
"prefix": "qlist",
"body": [
"q-list(${1:highlight})",
"\tq-list-header ${2:Recent chats}",
"\tq-item",
"\t\tq-item-side(avatar='${3:statics/linux-avatar.png}')",
"\t\t\tq-item-main(label='${4:Jim Doe}')",
"\t\t\t\tq-item-side(right, icon='${5:chat_bubble}')"
],
"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."
},
"QItem": {
"prefix": "qitem",
"body": [
"q-item(tag='${1:label}')",
"\tq-item-side",
"\t\t| ${2:",
"\t\tq-checkbox(v-model='checkboxModel') }",
"\tq-item-main",
"\t\tq-item-tile(label) ${3:Notifications}",
"\t\tq-item-tile(sublabel) ${4:Notify me about updates}",
"\tq-item-side(right)",
"\t\t| ${5:",
"\t\tq-item-tile(icon='chat_bubble', color='green') }"
],
"description": "Lists can encapsulate Items or Item-like components, for example QCollapsible."
},
"QMarkupTable": {
"prefix": "qmarkuptable",
"body": [
Expand Down

0 comments on commit ba24fc2

Please sign in to comment.