docs/api/cropper-grid.md
The CropperGrid interface provides properties and methods for manipulating the layout and presentation of <cropper-grid> elements.
:::live-demo
<cropper-grid></cropper-grid>
:::
:::tip
The default height of this element is 0.
:::
:::live-demo
<cropper-grid rows="4" columns="18" theme-color="#39f" style="height: 10rem;"></cropper-grid>
:::
:::live-demo
<cropper-canvas style="background-color: #39f;">
<cropper-grid bordered covered></cropper-grid>
</cropper-canvas>
:::
:::live-demo
<cropper-selection width="160" height="90" style="background-color: #39f;">
<cropper-grid bordered covered></cropper-grid>
</cropper-selection>
:::
Inherits properties from its parent, CropperElement, and implements the following properties:
| Name | Type | Default | Options | Description |
|---|---|---|---|---|
| rows | number | 3 | - | Indicates the number of the rows. |
| columns | number | 3 | - | Indicates the number of the columns. |
| bordered | boolean | false | - | Indicates whether this element is bordered. |
| covered | boolean | false | - | Indicates whether this element covers its parent element. |
| slottable | boolean | false | - | Indicates whether this element is slottable. |
| themeColor | string | "rgba(238, 238, 238, 0.5)" | - | Indicates the color of the element. |
There are no available slots in this element.
You can enable the default slot by setting the
slottableproperty totrue:html<cropper-grid slottable></cropper-grid>