primevue-mirror/components/lib/utils/UniqueComponentId.js

8 lines
113 B
JavaScript
Raw Normal View History

2019-10-08 11:22:32 +00:00
var lastId = 0;
export default function (prefix = 'pv_id_') {
2019-10-08 11:22:32 +00:00
lastId++;
2022-09-14 11:26:01 +00:00
2019-10-08 11:22:32 +00:00
return `${prefix}${lastId}`;
2022-09-14 11:26:01 +00:00
}