Forum Discussion
smithme
Feb 26, 2019Brass Contributor
How To: Add unique ID to div
I am creating my first simple web part that will modify a div. I want to find the div by giving it a unique ID. As it is possible for a user to put more than one of my web part on a single page, how ...
- Feb 26, 2019
Hi smithme
sure you can create and assign a Guid
var guid: Guid = Guid.newGuid();
importing
import { Guid } from '@microsoft/sp-client-base';
Cheers,
Federico
Feb 26, 2019
Hi smithme
sure you can create and assign a Guid
var guid: Guid = Guid.newGuid();
importing
import { Guid } from '@microsoft/sp-client-base';
Cheers,
Federico
smithme
Feb 26, 2019Brass Contributor
I failed to mention that I am using the SharePoint Framework with Visual Studio Code. I modified the original post to try and clarify my question.