Button
A button component! Used to call a callback on the love client. Can check out Bootstrap's docs for an example.
Updates
colorBSColor ("primary")- A bootstrap color for the entire button.
colorOutlineboolean (false)- If the button should be outlined instead of solid fill.
textstring ("")- Text the button displays
isDisabledboolean (false)- If the button should be disabled (faded out, unable to be pressed).
widthBSWidth ("100")- The percentage width the button takes up. Text wraps downward.
isCentered_boolean` (true)- Centers the button
Events
onEventClickcallbackID- The callback ID to trigger. See
mintmousse.onEvent.
Examples
{
text = "Press me!",
color = "secondary",
onEventClick = "myButtonCallback",
}
{
text = "My fancy button!",
color = "warning",
colorOutline = true,
width = "50",
isCentered = true,
onEventClick = "myButtonCallback,
}