Skip to content

Add dynamicData parameters to 'spo page clientsidewebpart add' command #751

@mpowney

Description

@mpowney

Summary

With the new properties in the TypeScript SDK that support dynamic data web part properties:

.. add them as new params in the spo page clientsidewebpart add command

Current behaviour

The params are available for entry in the spo page clientsidewebpart add command:

  • pageName: string;
  • webUrl: string;
  • standardWebPart?: StandardWebPart;
  • webPartData?: string;
  • webPartId?: string;
  • webPartProperties?: string;
  • section?: number;
  • column?: number;
  • order?: number;

Additional behaviour

Add the following params as options for the user to provide:

  • dynamicDataPaths?: string
  • dynamicDataValues?: string

To Do

  • Update param options available in the cmd: ./src/o365/spo/commands/page/page-clientsidewebpart-add.ts
  • Pass the new param values through to the generated HTML of the new component
  • Consider whether a method to dynamically look up the id of another web part, to make the connection possible within the command itself, with an extra cmd parameter to allow the user to turn this behaviour on (suggested parameter definition: updateDynamicDataPaths: boolean)
  • Regression test any other commands with dependency on ClientSideWebpart class

Note: this suggestion relates to #750

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions