builder

Last updated 23 days ago

Choices Builder Module.

API Overview

  • Functions - API calls offered directly by the extension

  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Functions

new

Signature

cp.choices.builder.new(choiceType) -> builder

Type

Function

Description

Creates a new choice builder instance.

Parameters

Returns

Methods

id

Signature

cp.choices.builder:id(value) -> builder

Type

Method

Description

Sets the ID of the choice.

Parameters

Returns

params

Signature

cp.choices.builder:params(value) -> builder

Type

Method

Description

Specifies a table of parameter values for the choice. These

Parameters

Returns

subText

Signature

cp.choices.builder:subText(value) -> builder

Type

Method

Description

Specifies the subText value for the choice being built.

Parameters

Returns

text

Signature

cp.choices.builder:text(value) -> builder

Type

Method

Description

Specifies the text value for the choice being built.

Parameters

Returns