cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Creating a default Style Definition for a widget extension

mdszy
12-Amethyst

Creating a default Style Definition for a widget extension

I'm creating a Widget Extension and would like for there to be a Style Definition that comes along when installing the Extension for use as a default style in the widget. How can I go about doing this?

ACCEPTED SOLUTION

Accepted Solutions
jmoody
7-Bedrock
(To:mdszy)

The approach I would take would be:

 

1. Create the style inside of ThingWorx.

2. Export the style entity to XML.

3. Create a directory in the root of your extension zip file called "Entities".

4. Move the exported XML into this new directory.

    (any entities you include in this directory will be imported as extension entities)

5. You can then reference the name of that style in your extension.

View solution in original post

1 REPLY 1
jmoody
7-Bedrock
(To:mdszy)

The approach I would take would be:

 

1. Create the style inside of ThingWorx.

2. Export the style entity to XML.

3. Create a directory in the root of your extension zip file called "Entities".

4. Move the exported XML into this new directory.

    (any entities you include in this directory will be imported as extension entities)

5. You can then reference the name of that style in your extension.

Announcements


Top Tags