sidebar doc updates
parent
33ac6be80c
commit
52f5e5b9a6
|
@ -46,6 +46,12 @@ const SidebarProps = [
|
|||
type: 'string',
|
||||
default: 'close',
|
||||
description: 'Aria label of the close icon.'
|
||||
},
|
||||
{
|
||||
name: 'blockScroll',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Whether background scroll should be blocked when sidebar is visible.'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -44,6 +44,10 @@ export interface SidebarProps {
|
|||
* Default value is true.
|
||||
*/
|
||||
modal?: boolean | undefined;
|
||||
/**
|
||||
* Whether background scroll should be blocked when sidebar is visible.
|
||||
*/
|
||||
blockScroll?: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface SidebarSlots {
|
||||
|
|
|
@ -70,14 +70,6 @@ describe('Sidebar.vue', () => {
|
|||
expect(bindOutsideClickListenerSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
/* it('When transition trigger to onAfterLeave, bindOutsideClickListener should be triggered', async () => {
|
||||
const bindOutsideClickListenerSpy = vi.spyOn(wrapper.vm, 'bindOutsideClickListener');
|
||||
|
||||
await wrapper.vm.onAfterLeave();
|
||||
|
||||
expect(bindOutsideClickListenerSpy).toHaveBeenCalled();
|
||||
}); */
|
||||
|
||||
it('When keydown is triggered , hide method should be triggered', async () => {
|
||||
const hideSpy = vi.spyOn(wrapper.vm, 'hide');
|
||||
|
||||
|
|
|
@ -67,7 +67,6 @@ export default {
|
|||
default: true
|
||||
}
|
||||
},
|
||||
maskClickListener: null,
|
||||
container: null,
|
||||
content: null,
|
||||
headerContainer: null,
|
||||
|
|
|
@ -121,6 +121,12 @@ import Sidebar from 'primevue/sidebar';
|
|||
<b> Deprecated: </b> <i>aria.close</i> can be used in defaults to PrimeVue <router-link to="/locale">Locale</router-link> configuration.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>blockScroll</td>
|
||||
<td>boolean</td>
|
||||
<td>true</td>
|
||||
<td>Whether background scroll should be blocked when sidebar is visible.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue