Content Glass let you share widgets with peers. A widget is a small application that usually present some specific info. Note that is mandatory that each widgets will have a user-interface. Some CG application uses widgets in order to hold some settings associate with some specific states, and these settings may be used for various tasks and not just presenting to user directly. 

Some example of widgets:

  • Text-Box: share plain text box
  • Note: share text or HTML using a background of note.
  • HTML-Box: share free HTML content including style.
  • Picture-Box: share image, possibly make the image reflect on the webpage background. 
  • Video-Box: share video, possibly reflect on background, possibly record your own video message.
  • Personalization - personalize a page (may also be applied to website domain)  and share the personalized state.
  • Chat - text chat
  • Shopping List - share shopping list with friends, possibly split the to multiple lists and allow each peer to purchase partial list.
  • Product Bundle - a widget used to represent the rules for setting bundle of products that can offer discounted price to the bundle.
  • Store-Navigator - a widget that carry the rulws for drawing special navigation arrows on a Shopify website and provide predicted scroll patterns.

These are only some of the widgets. As you can see there are very general widgets and at the same time other widgets are very specific to certain task. In fact the possibilities are endless since 3-rd party developers can easily write add-on apps that provide multiple custom made widgets. 

As noted above some widgets are used by users while other widgets are completely controlled by CG apps and are not exposed directly to users. We will now focus only on the widgets that user can share with peers. 

Sharing widget - what does it mean?

When user create widget the widget is associate with certain "state". When peer is set in the peers-group of the widget, or when widget is set with group, then either peer/group members will be able to see the widget, given that peer is on the same state. This is the abstract definition of state-oriented-sharing, or in other words the practice of sharing information is association with predefined state of something.

Example will help to clarify this: Assuming you visit a website where CG-Button is installed. When you browse a website you actually moving from page to page. Each page as a URL (an addrss that identify the page in the global web). The URL in the case of CG-Button app is used as property that defines a "state" to associate a widget with. So in the case of CG-Button when you create a widget the widget is associate with page URL (the state). It may also be associate with the Domain name or the Top level domain name but lets stick with the simple case.

So now we have a widget (e.g. Video-Box) associate with the URL of webpage, and assuming we also added peer to the peers-group of the widget (as will be explained by following chapter). When the other peer visit the same page (or encounter the same state, using state-oriented-sharing terminology) we present this user the widget.

Only users with whom widget has been shared with will be able to see the widget or will be affected by its internal application logic. For example if you shared personalization widget, the peers that ca "see" the widget will in fact experience the personalized page. If you defined that page background is pink they will see it as pink. 

How to share a widget?

We will cover thge answer for this question in the following three chapters:

  • Connecting with at least one social account
  • Creating a widget on the page and setting some content.
  • Set peers with whom you want to share the widget.