How to create extension with property?

I didnt find nothing about how to create extension.
I want to make set and get properties, what is the code needed to write? thanks…
NOT FUNCTION!

1 Like

See appInventr source code:

Its not what I asked…
I want example working code (how to make propertry set and get).
get - what inside when the user put something.

Hi ,
you can also see here some examples about creating properties as well:

1 Like

This video is in Hindi, but you can understand by seeing.

4 Likes

Actually by looking at the source code you will understand.

Example:

@SimpleProperty(
      category = PropertyCategory.APPEARANCE)
  public String Text() {
    return TextViewUtil.getText(view);
  }

  /**
   * Specifies the text displayed by the label.
   *
   * @param text  new caption for label
   */
  @DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA,
      defaultValue = "")
  @SimpleProperty
  public void Text(String text) {
    if (htmlFormat) {
      TextViewUtil.setTextHTML(view, text);
    } else {
      TextViewUtil.setText(view, text);
    }
    htmlContent = text;
  }
2 Likes