Docapitable options link changed
parent
ae49afb29e
commit
c6f69602c1
|
@ -45,8 +45,9 @@ export interface MenuItem {
|
|||
/**
|
||||
* Callback to execute when item is clicked.
|
||||
* @param {MenuItemCommandEvent} event - Custom command event.
|
||||
* @todo next release should be able to change
|
||||
*/
|
||||
command?(event: MenuItemCommandEvent): void;
|
||||
command?: (event: MenuItemCommandEvent) => void;
|
||||
/**
|
||||
* External link to navigate when item is clicked.
|
||||
*/
|
||||
|
|
|
@ -15356,6 +15356,13 @@
|
|||
"default": "",
|
||||
"description": "Style class of the menuitem."
|
||||
},
|
||||
{
|
||||
"name": "command",
|
||||
"optional": true,
|
||||
"readonly": false,
|
||||
"type": "Function",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"optional": true,
|
||||
|
@ -15451,21 +15458,7 @@
|
|||
"type": "any"
|
||||
}
|
||||
],
|
||||
"methods": [
|
||||
{
|
||||
"name": "command",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "event",
|
||||
"optional": false,
|
||||
"type": "MenuItemCommandEvent",
|
||||
"description": "Custom command event."
|
||||
}
|
||||
],
|
||||
"returnType": "void",
|
||||
"description": "Callback to execute when item is clicked."
|
||||
}
|
||||
]
|
||||
"methods": []
|
||||
},
|
||||
"MenuItemCommandEvent": {
|
||||
"description": "Custom command event.",
|
||||
|
|
|
@ -99,9 +99,11 @@ export default {
|
|||
},
|
||||
setLinkPath(value, type) {
|
||||
const currentRoute = this.$router.currentRoute.value.name;
|
||||
const componentName = this.$route.hash.replace('#api.', '').split('.')[0];
|
||||
const componentName = this.id.split('.')[1];
|
||||
|
||||
const definationType = type ? type : value.includes('Type') ? 'types' : value.includes('Event') ? 'events' : 'interfaces';
|
||||
let definationType = type ? type : value.includes('Type') ? 'types' : value.includes('Event') ? 'events' : value.includes('MenuItem') ? 'options' : 'interfaces';
|
||||
|
||||
definationType = definationType === 'menuitem' ? 'options' : definationType; // This for the menuitem. @todo: need to update
|
||||
|
||||
return `/${currentRoute}/#api.${componentName}.${definationType}.${value}`;
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
header="ConfirmPopup"
|
||||
description="ConfirmPopup displays a confirmation overlay displayed relatively to its target."
|
||||
:componentDocs="docs"
|
||||
:apiDocs="['ConfirmPopup', 'ConfirmationService', 'ConfirmationOptions']"
|
||||
:apiDocs="['ConfirmPopup', 'ConfirmationService-UseConfirm', 'ConfirmationOptions']"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue