-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated:Drawer component Api for documentation.
Showing
4 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
components/content/docs/components/drawer/api/DrawerApi.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script lang="ts" setup> | ||
const drawerAPIData = [ | ||
{ | ||
id: 1, | ||
propsName: "defaultOpen", | ||
propsType: "boolean", | ||
propsDescription: | ||
"The open state of the popover when it is initially rendered. Use when you do not need to control its open state.", | ||
default: "false", | ||
}, | ||
{ | ||
id: 2, | ||
propsName: "modal", | ||
propsType: "boolean", | ||
propsDescription: | ||
"The modality of the popover. When set to true, interaction with outside elements will be disabled and only popover content will be visible to screen readers.", | ||
default: "false", | ||
}, | ||
{ | ||
id: 3, | ||
propsName: "open", | ||
propsType: "boolean", | ||
propsDescription: "The controlled open state of the popover.", | ||
}, | ||
{ | ||
id: 4, | ||
propsName: "position", | ||
propsType: ["left", "top", "right", "bottom"], | ||
propsDescription: "Drawer position", | ||
default: "bottom", | ||
}, | ||
]; | ||
</script> | ||
|
||
<template> | ||
<ComponentApiTable :data="drawerAPIData" /> | ||
</template> |
16 changes: 16 additions & 0 deletions
16
components/content/docs/components/drawer/api/DrawerContentApi.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script lang="ts" setup> | ||
const drawerContentAPIData = [ | ||
{ | ||
id: 1, | ||
propsName: "disable-outside-pointer-events", | ||
propsType: "boolean", | ||
propsDescription: | ||
"When true, hover/focus/click interactions will be disabled on elements outside the DismissableLayer. Users will need to click twice on outside elements to interact with them: once to close the DismissableLayer, and again to trigger the element", | ||
default: "false", | ||
}, | ||
]; | ||
</script> | ||
|
||
<template> | ||
<ComponentApiTable :data="drawerContentAPIData" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters