# Gimp.Choice.prototype.add

    function add(nick: String, id: Number(gint), label: String, help: String): void {
        // Gjs wrapper for gimp_choice_add()
    }

This procedure adds a new possible value to choice list of values. The id is an optional integer identifier. This can be useful for instance when you want to work with different enum values mapped to each nick.

Since 3.0

nick

  the nick of choice.

id

  optional integer ID for nick.

label

  the label of choice.

help

  optional longer help text for nick.