SharePoint Fx Client Side WebPart with audience targeting?

%3CLINGO-SUB%20id%3D%22lingo-sub-23402%22%20slang%3D%22en-US%22%3ESharePoint%20Fx%20Client%20Side%20WebPart%20with%20audience%20targeting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-23402%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20looks%20like%20we%20can%2Fmay%2Fmust%20build%20the%20Client%20Side%20WebParts%20100%25%20ourselves.%3C%2FP%3E%3CP%3EDo%20we%20have%20to%20built%20the%20Target%20Audience%20functionality%20ourselves%20as%20well%3F%3C%2FP%3E%3CP%3EOr%20will%20Microsoft%20wrap%20some%20default%20SharePoint%20WebPart%20functionality%3F%3C%2FP%3E%3CP%3EJSLink%20is%20another%20obvious%20one%20(to%20me)%20as%20well%2C%20looking%20at%20an%20'old'%20WebPart%20Properties%20pane.%3C%2FP%3E%3CP%3EThere%20are%20probably%20more.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%2C%20(and%20I%20am%20really%20trying)%3C%2FP%3E%3CP%3Ebut%20I%20still%20have%20the%20feeling%20SPFx%20dropped%20me%20in%20the%20Sahara..%3C%2FP%3E%3CP%3Ewith%20the%20most%20fantastic%2Fawesome%2Ffabulous%20Client%2FServer%2Fwhatever%20Side%20toolset%20(I%20don't%20master%20yet)%20to%20survive...%3C%2FP%3E%3CP%3EBut%20I'm%20still%20stranded%20in%20the%20Sahara%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20like%20the%20new%20possibility%20to%20edit%20HTML%20and%20JS%20files%20with%20the%20(new)%20built-in%20editor%3C%2FP%3E%3CP%3EWith%20some%20minor%20GreaseMonkey%20tinkering%20I%20now%20have%20the%20regular%20CEWPs%20(where%20Fronteers%20have%20done%20their%20magic%20for%20some%2012%20years)%20pimped%20into%20a%20modern%20age%20version...%20no%20more%20messing%20around%20with%20Open-With-Explorer%20and%20Mapped%20Network%20drives%20that%20slowed%20down%20development%20in%20your%20IDE%20(in%20my%20case%20WebStorm).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20is%20what%20I%20originally%20thought%20Fx%20would%20be...%20a%20CEWP%20on%20(VSCodeOnline)%20steriods%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBack%20to%20my%20question%2C%20how%20do%20we%20do%20Audience%20Targetting%20with%20Fx%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Etnx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-28440%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Fx%20Client%20Side%20WebPart%20with%20audience%20targeting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-28440%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Danny%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20moment%2C%20I'm%20afraid%2C%20audience%20targeting%20is%20on%20the%20shoulders%20of%20a%20developer%2C%20who%20can%20add%20Target%20Audience%20group%20picker%20property%20(custom%20one%20for%20sure)%20and%20code%20for%20it%20hiding%2Fshowing%20the%20web%20part.%20Sounds%20awful%3F%20Maybe%2C%20but%20SPFx%20is%20a%20preview%20or%20even%20a%20proven%20vision%2C%20so%20it's%20a%20question%20of%20time%20and%20a%20list%20of%20helpers%20which%20will%20be%20added%20in%20future.%3C%2FP%3E%3CP%3E%3CSPAN%3ETarget%20Audience%20mimic%20could%20be%20done%20even%20now%20with%20some%20additional%20affords.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20toolchain%20used%20in%20SPFx%20can%20be%20applied%20for%20CEWPs%20on%20steroid%20development%20as%20well.%20This%20approach%20is%20applicable%20for%20development%20process%26nbsp%3Bwhen%20the%20source%20control%20(git)%20is%20used%20and%20tasks%20automation%20advantages.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EFrom%20this%20side%2C%20SPFx%20can%20stimulate%20migrating%20to%20the%20way%20of%20creating%20web%20applications%20in%20a%20bit%20more%20robust%20and%20reusable%20way%20as%20before.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

It looks like we can/may/must build the Client Side WebParts 100% ourselves.

Do we have to built the Target Audience functionality ourselves as well?

Or will Microsoft wrap some default SharePoint WebPart functionality?

JSLink is another obvious one (to me) as well, looking at an 'old' WebPart Properties pane.

There are probably more.

 

Sorry, (and I am really trying)

but I still have the feeling SPFx dropped me in the Sahara..

with the most fantastic/awesome/fabulous Client/Server/whatever Side toolset (I don't master yet) to survive...

But I'm still stranded in the Sahara

 

I do like the new possibility to edit HTML and JS files with the (new) built-in editor

With some minor GreaseMonkey tinkering I now have the regular CEWPs (where Fronteers have done their magic for some 12 years) pimped into a modern age version... no more messing around with Open-With-Explorer and Mapped Network drives that slowed down development in your IDE (in my case WebStorm).

 

That is what I originally thought Fx would be... a CEWP on (VSCodeOnline) steriods

 

Back to my question, how do we do Audience Targetting with Fx?

 

tnx

 

1 Reply
Highlighted

Hi Danny,

 

At the moment, I'm afraid, audience targeting is on the shoulders of a developer, who can add Target Audience group picker property (custom one for sure) and code for it hiding/showing the web part. Sounds awful? Maybe, but SPFx is a preview or even a proven vision, so it's a question of time and a list of helpers which will be added in future.

Target Audience mimic could be done even now with some additional affords.

 

The toolchain used in SPFx can be applied for CEWPs on steroid development as well. This approach is applicable for development process when the source control (git) is used and tasks automation advantages. 

From this side, SPFx can stimulate migrating to the way of creating web applications in a bit more robust and reusable way as before.