The <salla-sheet>
component is the baseline for numerous components such as the Button component. It is a transformable layout, based on the position
property, that provides a basic foundation for other components to be set on.Example#
Usage#
Properties#
Property | Attribute | Description | Type | Default |
---|
Height | height | Sets the vertical height of the component | number | 300 |
Persistent | persistent | Whether or not the component is in a force view mode where it is not closable | boolean | false |
Position | position | Positions the component for different UI layout usecases, such as mobile view | "bottom" | "left" | "right" | "top" | 'bottom' |
Sheet Color | sheet-color | Customizable coloring of the component | string | "#ffffff" |
Width | width | Sets the horizontal height of the component | number | 600 |
Methods#
The pre-defined methods
allow for calling functions built by Salla to carry out certain actvities, such as open
and close
which opens and closes the sheet layout.Method | Description | Return Type |
---|
open | Opens the sheet layout | Promise<void> |
close | Closes the sheet layout | Promise<void> |

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20