Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added toggle btn in drawer#1062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
raheeliftikhar5 merged 1 commit intolowcoder-org:devfromMenamAfzal:add/toggle
Jul 25, 2024
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added toggle btn in drawer
  • Loading branch information
@MenamAfzal
MenamAfzal committedJul 24, 2024
commita334a5aeb94b888eb54862448f0e3aee0eb24b45
6 changes: 6 additions & 0 deletionsclient/packages/lowcoder/src/comps/hooks/drawerComp.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -96,6 +96,7 @@ let TmpDrawerComp = (function () {
closePosition: withDefault(LeftRightControl, "left"),
maskClosable: withDefault(BoolControl, true),
showMask: withDefault(BoolControl, true),
toggleClose:withDefault(BoolControl,true)
},
(props, dispatch) => {
const isTopBom = ["top", "bottom"].includes(props.placement);
Expand DownExpand Up@@ -155,6 +156,7 @@ let TmpDrawerComp = (function () {
className={props.className as string}
data-testid={props.dataTestId as string}
>
{props.toggleClose && (
<ButtonStyle
$closePosition={props.closePosition}
onClick={() => {
Expand All@@ -163,6 +165,7 @@ let TmpDrawerComp = (function () {
>
<CloseOutlined />
</ButtonStyle>
)}
<InnerGrid
{...otherContainerProps}
items={gridItemCompToGridItems(items)}
Expand DownExpand Up@@ -206,6 +209,9 @@ let TmpDrawerComp = (function () {
{children.showMask.propertyView({
label: trans("prop.showMask"),
})}
{children.toggleClose.propertyView({
label: trans("prop.toggleClose"),
})}
</Section>
<Section name={sectionNames.interaction}>{children.onEvent.getPropertyView()}</Section>
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp