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