Building Apps with Jigx
...
UI
Home Hub

Stories

4min

Any solution can publish content (e.g. news about companies, product promotions, announcements, new videos, etc.) to a dedicated area on Home Hub called Stories.

Stories on Home Hub
Stories on Home Hub

Story Details
Story Details


Story Groups

You can group stories into Story Groups to make it easy for users to swipe through Stories related to a certain topic or theme (e.g. news, videos, announcements, etc.). In the above example, the left screenshot is the first story in the story group Account News. When tapped on, all stories within that story group show and a timer will advance to the next story automatically but you can also swipe left to navigate to the next one quickly.

There can be multipple story groups, by swiping left on the stories carousel on Home Hub, you can go to the next story group.

Publishing Stories

In your jig, define a stories section on the root level and assign a datasource using the data option. All stories are grouped in the story group you define via groupname.

A story can be an image, video, link to any URL (open-url), or other jig including passing parameters (go-to) or other actions in the onPress option.

news.jigx
promotions.jigx


For your stories to be displayed on Home Hub add the jig, news in the example below, to your index.jigx file:

index.jigx


Permissions for Stories

You can use Jigx Management to set permissions for stories, for example, stories that should only be visible for users in a Managers group but not for all staff. Learn more about this in the Stories section of Jigx Management.

You can find the above examples in the jigx-samples app on Github.



Updated 05 Aug 2024
Doc contributor
Did this page help you?
Yes
No