Git Product home page Git Product logo

jmix-docs's Introduction

Jmix Documentation

This repository contains documentation for all Jmix framework modules. The documentation is published at https://docs.jmix.io.

Building

  • Install Node LTS release from https://nodejs.org

  • Open terminal in jmix-docs root folder and run:

    npm i
    npx antora antora-playbook.yml
    
  • Open jmix-docs/build/site/index.html in a web browser.

jmix-docs's People

Contributors

agmitron avatar alexbudarov avatar amirshelli avatar belyaev-andrey avatar bryanyin avatar dtaimanov avatar enimiste avatar flaurite avatar gasloff avatar glebdurygin avatar glebfox avatar gorbunkov avatar honest-niceman avatar iooewreyooi avatar iudaev avatar jojo134 avatar knstvk avatar kremnevdmitry avatar lovtsovaik avatar mariodavid avatar oshiryaeva avatar proksiks avatar sevdan avatar speker2010 avatar sukhova avatar syncro avatar tdltdl avatar vyacheslav-pushkin avatar web-devel avatar zharenov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jmix-docs's Issues

Actualize and fix code example in Creating Calculated Attribute

Enviroment:

Part of the documentation: quick start
Existing page: https://docs.jmix.io/jmix/0.x/quick-start/index.html

Description of the bug or enchacement

§Creating Calculated Attribute

  1. Different name of function in text and in example of code:
    Text:
    To do this, we need to create a new method - getFullName() in the Speaker class and make its return type String.

Code:

@InstanceName
@DependsOnProperties({"firstName", "lastName", "username"})
public String getDisplayName() {
    return String.format("%s %s [%s]", (firstName != null ? firstName : ""),
            (lastName != null ? lastName : ""), username);
}

AR: different names of function
ER: function should have one name in text and in example

  1. There is no field 'username" in class Speaker which used in this function (p.1)
    Listing of class (getters, setters and imports are omitted):
package com.company.jmixpr.entity;
@JmixEntity
@Table(name = "JMIXPR_SPEAKER")
@Entity(name = "jmixpr_Speaker")
public class Speaker {
    @JmixGeneratedValue
    @Column(name = "ID", nullable = false)
    @Id
    private UUID id;

    @Column(name = "FIRST_NAME", nullable = false)
    @NotNull
    private String firstName;

    @Column(name = "LAST_NAME")
    private String lastName;

    @Email
    @Column(name = "EMAIL", nullable = false, length = 1024)
    @NotNull
    private String email;
}

AR: non-existing field in function
ER: function should use only existing fields

Add counter in the docs

We need to add a code on all the pages of documentation for statistics collection. The code is the following:

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MH3DTWV');</script>
<!-- End Google Tag Manager -->

Update Screen events description

Copied from cuba-platform/cuba#2947

We get feedback from some users that they don't understand what event they should listen to if they want to perform some screen initialization based on loaded data (collection containers, or edited entity graph in entity editor).

e.g.
https://www.cuba-platform.com/discuss/t/for-looping-through-child-entity-to-set-edit-ability-of-screen-components/8237/2
or
https://www.cuba-platform.com/discuss/t/geteditedentity-in-edit-screen/12785

In topics above users tried to use InitEvent.
But for most users the most "safe" event to use when you need a fully initialized screen - is "BeforeShow" (until you read the JavaDocs).

Because "BeforeShow" intuitively feels like "after all initialization is fully completed, right before showing the screen in the UI (attaching it to the main layout)".
Unfortunately BeforeShow event doesn't work this way. It is fired somewhere in the middle of the screen initialization process:

Event sent right before the screen is shown, i.e. it is not added to the application UI yet. ... Saved component settings are not yet applied to UI components. Data is not loaded yet for screens annotated with @LoadDataBeforeShow.

Contradictory description, isn't it? How it can be "right before" while settings weren't applied yet, and data wasn't loaded yet?

The proper event at the moment is the AfterShowEvent. However for some users it may feel intuitively wrong, because they tend to think that "UI is going to blink if I change something after the screen is shown". It is a false concern, but people have this feeling.

Seems that we need to update the Screen.BeforeShowEvent and Screen.AfterShowEvent description so that users will understand what event to use in what case.

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.