setPlaceholder

fills placeholders in a table with data

void setPlaceholder(object|string placeholder, [number|string value] );
placeholderobject|stringdata properties which can be set as SpreadSheet values
valuenumber|stringvalue of the placeholder, if passed as a string

Example

$$("ssheet").setPlaceholder({value:"France", expense:1366, income:842});

Related samples

Details

If the placeholder is a string, you need to provide the value parameter as well:

$$("ssheet").setPlaceholder("expense", 1366);

Pay attention that the names of placeholders can't contain the following special characters:

  • Spaces
  • Operators: + - * / = > < ~ ? !
  • Curly brackets, parentheses, quotes, double quotes: { } ( ) " '
  • Other special characters, including: , | \ : ; @ % ^ &

It is recommended to use underscores instead of spaces in the names of placeholders that contain several words, for example: "my_name".

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.