Aller au contenu principal
Version: 20 R5 BETA

Composants

Un composant 4D est un ensemble de code et de formulaires 4D représentant une ou plusieurs fonctionnalités que vous pouvez installer et utiliser dans vos projets. For example, the 4D SVG component adds advanced commands and an integrated rendering engine that can be used to display SVG files.

Installation des composants

Several components are preinstalled in the 4D development environment, but a lot of 4D components from the 4D community can be found on GitHub. Additionnally, you can develop your own 4D components.

Installation and loading of components in your 4D projects are handled through the 4D package manager.

Utilisation des composants

Le code exposé des composants (méthodes et fonctions) ainsi que les formulaires peuvent être utilisés comme éléments standard dans votre développement 4D.

When an installed component contains methods, classes, and functions, they appear in the Component Methods theme of the Explorer's Methods page:

alt-text

note

If the component is compiled, its namespace is written between parentheses after its name. Utilisez ce namespace pour accéder aux fonctions du composant.

You can select a component project method or class and click on the Documentation button of the Explorer to get information about it, if any.

alt-text