cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Take input from a user while adding a pcf component

I have a PCF Component. I need to ask the user to enter the minimum number of characters that are required in the field. This must take place while adding the PCF Component to the field.

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate I
Advocate I

you can add an additional property to the manifest and after read the property value inside your logic.

you can check the source code of my PCF control

https://github.com/GuidoPreite/PCF_CustomUrlControl/tree/master/CustomUrlControl

View solution in original post

6 REPLIES 6
Advocate I
Advocate I

you can add an additional property to the manifest and after read the property value inside your logic.

you can check the source code of my PCF control

https://github.com/GuidoPreite/PCF_CustomUrlControl/tree/master/CustomUrlControl

View solution in original post

Could you please include the manifest file in your code?

I wanted the ManifestTypes.d.ts file. Could you please upload that?

this is the content of the ManifestTypes.d.ts, however it get generated by the pcf tooling

 

/*
*This is auto generated from the ControlManifest.Input.xml file
*/

// Define IInputs and IOutputs Type. They should match with ControlManifest.
export interface IInputs {
value: ComponentFramework.PropertyTypes.Property;
placeholder: ComponentFramework.PropertyTypes.StringProperty;
value2?: ComponentFramework.PropertyTypes.Property;
placeholder2?: ComponentFramework.PropertyTypes.StringProperty;
value3?: ComponentFramework.PropertyTypes.Property;
placeholder3?: ComponentFramework.PropertyTypes.StringProperty;
urlLink: ComponentFramework.PropertyTypes.StringProperty;
urlText?: ComponentFramework.PropertyTypes.StringProperty;
urlCSS?: ComponentFramework.PropertyTypes.StringProperty;
icon?: ComponentFramework.PropertyTypes.StringProperty;
iconStyle?: ComponentFramework.PropertyTypes.StringProperty;
}
export interface IOutputs {
value?: any;
value2?: any;
value3?: any;
}

Thankyou!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Users online (17,173)