mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update doc components structure
This commit is contained in:
parent
cf5dd67244
commit
036b90fc82
16 changed files with 18 additions and 14 deletions
16
components/doc/helpers/PTHelper.js
Normal file
16
components/doc/helpers/PTHelper.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import APIDocs from '@/doc/common/apidoc/index.json';
|
||||
|
||||
export const getPTOption = (name) => {
|
||||
const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`];
|
||||
let data = [];
|
||||
|
||||
for (const [i, prop] of props.entries()) {
|
||||
data.push({
|
||||
value: i + 1,
|
||||
label: prop.name,
|
||||
description: prop.description
|
||||
});
|
||||
}
|
||||
|
||||
return data;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue