Button API Overview
Initialization
<script>
import { Button } from "wx-svelte-core";
</script>
<!-- minimal configuration for initialization -->
<Button>Click Me</Button>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Button Properties
click | adds a click handler to a button |
css | adds a custom style to a button |
disabled | defines whether a button is disabled |
icon | adds an icon into a button |
text | adds a text for a button |
title | sets a tooltip text with additional info about the control |
type | sets the type of a button |
Button Events
click | fires when a button is clicked |