quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
108 lines • 2.8 kB
JSON
{
"type": "component",
"meta": {
"docsUrl": "https://v1.quasar.dev/layout/layout"
},
"behavior": {
"$listeners": {
"desc": "All native events are being propagated (you don't need the '.native' modifier)"
}
},
"props": {
"view": {
"type": "String",
"desc": "Defines how your layout components (header/footer/drawer) should be placed on screen; See docs examples",
"default": "hhh lpr fff",
"examples": [
"hHh lpR fFf"
],
"category": "content"
},
"container": {
"type": "Boolean",
"desc": "Containerize the layout which means it changes the default behavior of expanding to the whole window; Useful (but not limited to) for when using on a QDialog",
"category": "content"
}
},
"slots": {
"default": {
"desc": "Suggestion: QHeader, QFooter, QDrawer, QPageContainer"
}
},
"events": {
"resize": {
"desc": "Emitted when layout size (height, width) changes",
"params": {
"size": {
"type": "Object",
"desc": "New size",
"definition": {
"height": {
"type": "Number",
"desc": "Layout height",
"examples": [
575
]
},
"width": {
"type": "Number",
"desc": "Layout height",
"examples": [
575
]
}
}
}
}
},
"scroll": {
"desc": "Emitted when user scrolls within layout",
"params": {
"details": {
"type": "Object",
"desc": "Scroll details",
"definition": {
"position": {
"type": "Number",
"desc": "Scroll offset (from top)",
"examples": [
575
]
},
"direction": {
"type": "String",
"desc": "Direction of scroll",
"values": [
"up",
"down"
]
},
"directionChanged": {
"type": "Boolean",
"desc": "Has scroll direction changed since event was last emitted?"
},
"inflexionPosition": {
"type": "Number",
"desc": "Last scroll offset where scroll direction has changed",
"examples": [
575
]
}
}
}
}
},
"scroll-height": {
"desc": "Emitted when the scroll size of layout changes",
"params": {
"height": {
"type": "Number",
"desc": "New scroll height of layout",
"examples": [
1442
]
}
}
}
}
}