Giter Club home page Giter Club logo

cuba-component-help-system's Introduction

license Build Status

CUBA Platform Component - Help system

This application component offers a context help system for your CUBA application.

Installation

  1. Add the following maven repository https://dl.bintray.com/balvi/cuba-components to the build.gradle of your CUBA application:

    buildscript {

     //...
     
     repositories {
     
         // ...
     
         maven {
             url  "https://dl.bintray.com/balvi/cuba-components"
         }
     }
     
     // ...
    

    }

  2. Select a version of the add-on which is compatible with the platform version used in your project:

Platform Version Add-on Version
7.2.x 0.8.x
7.1.x 0.7.x
7.0.x 0.6.x
6.10.x 0.5.x
6.9.x skipped
6.8.x 0.3.x
6.7.x 0.2.x
6.6.x 0.1.x

The latest version is: 0.8.0

Add custom application component to your project:

  • Artifact group: de.balvi.cuba.helpsystem
  • Artifact name: help-system-global
  • Version: add-on version

Usage

Defining help texts

To use the help system, users can define help texts for certain screens (even components) of the application. These texts are stored in the databse.

Screenshot help text management

Usage of the help texts in the application

When the user uses a particular screen of your application, there is a help button on the upper right of the screen. Using that will open the help information for this particular screen.

The @HasHelp Annotation support only screens created with the legacy GUI-API.

In order to make a screen available for help text, just add the @HasHelp Annotation on your controller and extend from AnnotatableAbstract(Lookup|Editor) like this:

@HasHelp
class CustomerBrowse extends AnnotatableAbstractLookup {
   ...
}

Starting with the version supporting CUBA 7.1 the application component also support the new GUI-API by using a mixin interface class.

To make the help text available in a screen created with the new GUI-API, just add the implements statement to your class definition like this:

class NewGuiCustomerBrowse extends StandardLookup<NewGuiCustomer> implements WithHelpSystem {
   ...
}

For more information on the annotation topic, you can take a look at the declarative-controllers application component.

Now you can take a look at the screen you annotated and will see the help button on the upper right:

Screenshot context help

Starting with version 0.7 ot the application component a first approach for a usage of the Component-ID was added.

By creating context help texts with given Screen and Component-ID values you are now able to select these texts when you add a help text link inside your help text.

cuba-component-help-system's People

Contributors

smkdm avatar bresche avatar mariodavid avatar

Forkers

kralynch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.