# Content
# Data Table
# Import
import { DataTable } from "monsetra-vue/dist/content";
# Usage
<data-table
:dataframe="data"
:colour="Colours.primary"
checkbox
row-check
@change="value => fn(value)"
></data-table>
# Parameters
# dataframe
- Type:
Object
asDataFrame
- Required
Sets the data to be shown in the data table
# colour
- Type:
String
(hex code orColours
) - Default:
Colours.primary
Sets the colour of the checkbox of the data table
# checkbox
- Type:
Boolean
- Optional
Sets if the data table contains checkboxes
# row-check
- Type:
Boolean
- Optional
Sets if clicking the row will check the row itself
# Slots
# #column-name
- Customise the appearance of the data under a column
- Implementation
<data-table :dataframe="tableData"> <template #column-3="{ data, row }"> <span>${{ data }} | {{ row.label }}</span> </template> </data-table>
# Emits
# @change
- Returns the data of the selected rows
Emitted when a user checks a row in the data table
# Floating Card
# Import
import { FloatingCard } from "monsetra-vue/dist/content";
# Usage
<floating-card
colour="unset"
hover
tight-fit
></floating-card>
# Parameters
# hover
- Type:
Boolean
- Optional
Sets if the floating card has a hover effect
# colour
- Type:
String
(hex code orColours
) - Default:
"unset"
Sets the colour of the floating card
# tight-fit
- Type:
Boolean
- Optional
Sets if the floating card has a tight fit around the content
# Slots
# default
- Wrap the content round the floating card
- Implementation
<floating-card> <h1><b>Floating Card</b></h1> <p>Hey, I am inside an floating card!</p> </floating-card>
# Outlined Card
# Import
import { OutlinedCard } from "monsetra-vue/dist/content";
# Usage
<outlined-card
colour="unset"
hover
tight-fit
></outlined-card>
# Parameters
# hover
- Type:
Boolean
- Optional
Sets if the outlined card has a hover effect
# border-colour
- Type:
String
(hex code orColours
) - Default:
#7f7f7f36
Sets the colour of the boder of the outlined card
# colour
- Type:
String
(hex code orColours
) - Default:
"unset"
Sets the colour of the outlined card
# tight-fit
- Type:
Boolean
- Optional
Sets if the outlined card has a tight fit around the content
# Slots
# default
- Wrap the content around the outlined card
- Implementation
<outlined-card> <h1><b>Outlined Card</b></h1> <p>Hey, I am inside an outlined card!</p> </outlined-card>
# Modal
# Import
import { Modal } from "monsetra-vue/dist/content";
# Usage
<modal
@context="ctx => ctx_modal = ctx"
></modal>
# Slots
# default
- Create custom content in the modal
- Implementation
<modal> <h1><b>Modal</b></h1> <p>Hey, I am inside a modal!</p> </modal>
← Input Informative →