Skip to content

createInsertAudience

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/plugins/toolbar/components/InsertAudience.tsx

Factory function to create an audience insertion toolbar button with dynamic audience data. For this to work, you need to have the directives plugin enabled with the audience directive descriptor configured.

Signature

ts
function createInsertAudience(audiences: AudienceModel[])

Parameters

NameType
audiencesAudienceModel[]

Was this page helpful?

Download as PDF