choices

Last updated 2 months ago

Choices Module.

Submodules

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.new(type) -> choices

Type

Function

Description

Creates a new cp.choices instance for the specified type.

Parameters

Returns

Methods

Signature

cp.choices:getChoices() -> array of choices

Type

Method

Description

Returns the array of choices that have been added to this instance.

Parameters

Returns

new

Signature

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

Type

Method

Description

Adds a new choice with the specified. Additional settings

Parameters

Returns